예제 #1
0
        public void TestDisposeDestroyAttachers()
        {
            var         attacher = new Mock <IAttacher>();
            CommandInfo ci       = new CommandInfo();

            ci.AttachTo(attacher.Object);

            ci.Dispose();
            attacher.Verify(a => a.Dispose(), Times.Once());
        }
예제 #2
0
      public void TestDisposeDestroyAttachers()
      {
         var attacher = new Mock<IAttacher>();
         CommandInfo ci = new CommandInfo();
         ci.AttachTo(attacher.Object);

         ci.Dispose();
         attacher.Verify(a => a.Dispose(), Times.Once());
      }