public void TestFirstAddedStateExists() { StateSystem stateSystem = new StateSystem(); stateSystem.AddState("splash1", new SplashScreenState(stateSystem)); stateSystem.AddState("splash2", new SplashScreenState(stateSystem)); Assert.IsTrue(stateSystem.Exists("splash1")); }
public void TestAddedStateExists() { StateSystem stateSystem = new StateSystem(); stateSystem.AddState("splash", new SplashScreenState(stateSystem)); // Does the added function now exist? Assert.IsTrue(stateSystem.Exists("splash")); }