public void ShouldReturnHumanVsHumanGameMode() { //Arrange FakeGameModeSelectionAction nextAction = new FakeGameModeSelectionAction.Builder().Build(); HumanVsHumanGameModeSelectionAction subject = new HumanVsHumanGameModeSelectionAction(nextAction); //Act IGameMode gameMode = subject.Act("2"); //Assert gameMode.Should().BeOfType <HumanVsHumanGameMode>(); }
public void ShouldInvokeAct() { //Arrange FakeGameMode fakeGameMode = new FakeGameMode.Builder().Build(); FakeGameModeSelectionAction nextAction = new FakeGameModeSelectionAction.Builder().Act(fakeGameMode).Build(); HumanVsHumanGameModeSelectionAction subject = new HumanVsHumanGameModeSelectionAction(nextAction); //Act subject.Act("not 2"); //Assert nextAction.AssertActInvoked(); }