public void StateSystemExists() { StateSystem _system = new StateSystem(); _system.AddState("splash", new SplashScreenState(_system)); _system.AddState("title", new SplashScreenState(_system)); _system.AddState("playing", new SplashScreenState(_system)); _system.AddState("settings", new SplashScreenState(_system)); Assert.IsTrue( _system.Exists("splash") && _system.Exists("title") && _system.Exists("playing") && _system.Exists("settings") ); }
public void TestAddedStateExists() { StateSystem stateSystem = new StateSystem(); stateSystem.AddState("splash", new SplashScreenState(stateSystem)); // Does the added function now exist? Assert.IsTrue(stateSystem.Exists("splash")); }