コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: schadinski/Studium
        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);
        }