public void Do_Test_II() { var command = Substitute.For <ICommand>(); var NotDoSomething = new SomethingThatNeed(command); NotDoSomething.NotDoAnything(); command.DidNotReceive().Execute(); }
public void Do_test() { var command = Substitute.For <ICommand>(); var dosomething = new SomethingThatNeed(command); dosomething.DoSomeThing(); command.Received().Execute(); }