public void chechValidGameNameWithInvalidCharacterTest() { gameCoordinator.loadGame("*"); Assert.AreEqual(2, spyUIPresenter.lastGameContext.Length); Assert.AreEqual("_", spyUIPresenter.lastGameContext[0]); Assert.AreEqual(0, spyUIPresenter.lastStory.Length); }
public void chechEmptyGameNameTest() { rolePlayCoordinator.loadGame(""); Assert.AreEqual(ErrorCode.GameNameIsNotValid.ToString(), spyUIPresenter.lastErrorCode); }