Esempio n. 1
0
        public async Task Idle_State_Incorrect_Command()
        {
            // Arrange
            var fakeState   = State.Idle;
            var fakeSession = GetFakeSession(fakeState: fakeState);
            var fakeCommand = "command";

            // Act
            var idleLogic = new IdleLogic(_logicTranslationsMock.Object);
            var result    = await idleLogic.Act(fakeCommand, fakeSession);

            // Assert
            Assert.AreEqual(result.Session.State, State.Idle);
        }