Пример #1
0
 public void MakeSureThatCallingDisposeCallsConfigurationBuilderDispose()
 {
     MockBuilder mockBuilder = new MockBuilder();
     DisposingWrapper wrapper = new DisposingWrapper(mockBuilder);
     wrapper.Dispose();
     Assert.IsTrue(mockBuilder.disposed);
 }
Пример #2
0
        public void MakeSureThatCallingDisposeCallsConfigurationBuilderDispose()
        {
            MockBuilder      mockBuilder = new MockBuilder();
            DisposingWrapper wrapper     = new DisposingWrapper(mockBuilder);

            wrapper.Dispose();
            Assert.IsTrue(mockBuilder.disposed);
        }