示例#1
0
        public void Do_Test_II()
        {
            var command        = Substitute.For <ICommand>();
            var NotDoSomething = new SomethingThatNeed(command);

            NotDoSomething.NotDoAnything();
            command.DidNotReceive().Execute();
        }
示例#2
0
        public void Do_test()
        {
            var command     = Substitute.For <ICommand>();
            var dosomething = new SomethingThatNeed(command);

            dosomething.DoSomeThing();
            command.Received().Execute();
        }