예제 #1
0
        public void TestMethod1()
        {
            //test PlayState
            PlayState currState = new PlayState();
            var       result    = currState.Handle(VHSContext.Events.PlayClicked, new TapeInState());

            Assert.AreEqual(currState, result);

            StandByState expectedState = new StandByState();

            result = currState.Handle(VHSContext.Events.StopClicked, new TapeInState());
            //objektvergleich, failed
            //Assert.AreEqual(expectedState, result);

            Assert.IsTrue(result is StandByState);
        }