public void ChooseMode_State_Back() { // Arrange var fakeState = State.ModeChoose; var fakeLanguage = "language"; var fakeSession = GetFakeSession(fakeState: fakeState, fakeLanguage: fakeLanguage); // Act var modeLogic = new ModeChooseLogic(_logicTranslationsMock.Object); var result = modeLogic.Back(fakeSession); // Assert Assert.AreEqual(fakeSession.State, State.LanguageChoose); Assert.IsNull(fakeSession.Language); }
public async Task ChooseMode_State_Incorrect_Command() { // Arrange var fakeState = State.ModeChoose; var fakeLanguage = "language"; var fakeSession = GetFakeSession(fakeState: fakeState, fakeLanguage: fakeLanguage); var fakeCommand = "command"; // Act var modeLogic = new ModeChooseLogic(_logicTranslationsMock.Object); var result = await modeLogic.Act(fakeCommand, fakeSession); // Assert Assert.AreEqual(fakeSession.State, State.ModeChoose); }