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