Harrison Deng
f5a181d2f2
Moved core test code to reflect changes in core code. Removed unused using directives.
36 lines
746 B
C#
36 lines
746 B
C#
using System;
|
|
|
|
namespace GameServiceWarden.Core.Tests.Collection
|
|
{
|
|
public class FakeDisposable : IDisposable
|
|
{
|
|
private string value;
|
|
private bool disposedValue;
|
|
|
|
public FakeDisposable(string value)
|
|
{
|
|
this.value = value;
|
|
}
|
|
|
|
public bool IsDisposed() {
|
|
return disposedValue;
|
|
}
|
|
|
|
protected virtual void Dispose(bool disposing)
|
|
{
|
|
if (!disposedValue)
|
|
{
|
|
if (disposing)
|
|
{
|
|
}
|
|
disposedValue = true;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Dispose(disposing: true);
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
}
|
|
} |