예제 #1
0
        public void TestStateSwitch()
        {
            StateComponent <TestStates> actual = new StateComponent <TestStates>(TestStates.s1);

            actual.Switch(TestStates.s3);

            TestStates expected = TestStates.s3;

            Assert.AreEqual(expected, actual.Peek(),
                            "Test that the state has changed once the stateis asked to switch");
        }