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/GameServiceWarden.Tests/GameServiceWarden.Core.Tests/Collection/FakeDisposable.cs

36 lines
746 B
C#
Raw Normal View History

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