This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
gameservicewarden/tests/GameServiceWarden.Core.Tests/Collection/FakeDisposable.cs
Harrison Deng f5a181d2f2 Added tests for LRUCache.
Moved core test code to reflect changes in core code.

Removed unused using directives.
2021-04-19 14:41:11 -05:00

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);
}
}
}