public void FixMinZ() { RollerCoasterMaker game = new RollerCoasterMaker(); game.BuildUp(); game.BuildUp(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildDown(); game.BuildDown(); game.BuildDown(); game.BuildDown(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); game.BuildStright(); Assert.AreEqual(game.builder.initialTaskResults, TaskResults.MinZ); Assert.AreEqual(game.builder.lastBuildActionFail, false); }
public void BuildUp() { RollerCoasterMaker game = new RollerCoasterMaker(); game.BuildUp(); Assert.AreEqual(67, game.coaster.TrackCount); }
public void BuildFlaten() { RollerCoasterMaker game = new RollerCoasterMaker(); for (int i = 0; i < 4; i++) { game.BuildUp(); } for (int i = 0; i < 10; i++) { game.BuildStright(); } game.BuildFlaten(); Assert.AreEqual(false, game.builder.lastBuildActionFail); }