public void BuildUpward() { RollerCoasterMaker game = new RollerCoasterMaker(); game.BuildUpward(); Assert.AreEqual(false, game.builder.lastBuildActionFail); }
static void Main(string[] args) { RollerCoasterMaker game = new RollerCoasterMaker(); game.BuildUpward(); game.BuildDownward(); game.BuildLoop(); game.Back(); game.BuildStright(); game.BuildStright(); game.BuildStright(); }
public void BuildDownward() { RollerCoasterMaker game = new RollerCoasterMaker(); for (int i = 0; i < 4; i++) { game.BuildUp(); } for (int i = 0; i < 10; i++) { game.BuildStright(); } game.BuildUpward(); Assert.AreEqual(false, game.builder.lastBuildActionFail); }