public void ThrowIfDisposedTest()
        {
            using var d = new DObject();
            d.Foo();

            d.Dispose();

            d.Foo();
        }
示例#2
0
 public void LoggableDisposableObject_TestLog()
 {
     using var dobject = new DObject(NullLogger.Instance);
     dobject.Foo();
 }