Beispiel #1
0
      public void TestRefreshState()
      {
         var attacher = new Mock<IAttacher>();
         CommandInfo ci = new CommandInfo();
         ci.AttachTo(attacher.Object);

         ci.RefreshState();
         attacher.Verify(a => a.RefreshState(), Times.Once());
      }
Beispiel #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());
        }
Beispiel #3
0
        public void TestRefreshState()
        {
            var         attacher = new Mock <IAttacher>();
            CommandInfo ci       = new CommandInfo();

            ci.AttachTo(attacher.Object);

            ci.RefreshState();
            attacher.Verify(a => a.RefreshState(), Times.Once());
        }
Beispiel #4
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());
      }