public void GivenInserter_whenNone_thenAction() { var chain = new CallChainAssert(); new Scenario() .Given(InserterWithMsg(chain, "insert")) .Then(ActionWithMsg(chain, "then")); chain.AssertCalledInOrder("insert,then"); }
public void GivenInserter_whenNone_thenAction() { var chain = new CallChainAssert(); new Scenario() .Given(InserterWithMsg(chain, "insert")) .Then(ActionWithMsg(chain, "then")); chain.AssertCalledInOrder("insert,then"); }
public void GivenAction_whenAction_thenAction() { var chain = new CallChainAssert(); new Scenario() .Given(() => chain.Called("given")) .When(() => chain.Called("when")) .Then(() => chain.Called("then")); chain.AssertCalledInOrder("given,when,then"); }
public void GivenAction_whenAction_thenAction() { var chain = new CallChainAssert(); new Scenario() .Given(() => chain.Called("given")) .When(() => chain.Called("when")) .Then(() => chain.Called("then")); chain.AssertCalledInOrder("given,when,then"); }
public void MultipleWhens_areInvoked() { var chain = new CallChainAssert(); new Scenario() .Given(() => chain.Called("given")) .When(() => chain.Called("when1")) .When(() => chain.Called("when2")) .Then(() => chain.Called("then")); chain.AssertCalledInOrder("given,when1,when2,then"); }
public void MultipleWhens_areInvoked() { var chain = new CallChainAssert(); new Scenario() .Given(() => chain.Called("given")) .When(() => chain.Called("when1")) .When(() => chain.Called("when2")) .Then(() => chain.Called("then")); chain.AssertCalledInOrder("given,when1,when2,then"); }