public void BuildRight() { RollerCoasterMaker game = new RollerCoasterMaker(); game.BuildRight(); Assert.AreEqual(67, game.coaster.TrackCount); }
public void DetectMaxX() { RollerCoasterMaker game = new RollerCoasterMaker(); game.BuildRight(); game.BuildRight(); game.BuildRight(); game.BuildRight(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); Assert.AreEqual(game.builder.initialTaskResults, TaskResults.MaxX); }
public void FixMaxX() { RollerCoasterMaker game = new RollerCoasterMaker(); game.BuildRight(); game.BuildRight(); game.BuildRight(); game.BuildRight(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); Assert.AreEqual(game.builder.initialTaskResults, TaskResults.MaxX); Assert.AreEqual(game.builder.lastBuildActionFail, false); }