public void Verify_that_executors_really_call_the_method() { //Verify that I'm able to execute Testcommand var cmd = new TestCommand(); sut.GetExecutorFor(typeof(TestCommand)).Invoke(cmd); cmd.CallCount.Should().Be.EqualTo(1); }
public void DoingTheTest(TestCommand testCommand) { testCommand.CallCount++; }