示例#1
0
 public void PreviousStateTest()
 {
     MenuState.SetState(State.MainMenu);
     Assert.IsTrue(MenuState.CurrentIs(State.MainMenu));
     MenuState.SetState(State.Game);
     Assert.IsTrue(MenuState.CurrentIs(State.Game));
     Assert.IsTrue(MenuState.Previous == State.MainMenu);
 }
示例#2
0
 public void SetStateTest()
 {
     MenuState.SetState(State.MainMenu);
     Assert.IsTrue(MenuState.CurrentIs(State.MainMenu));
 }