public void BuildLoop() { RollerCoasterMaker game = new RollerCoasterMaker(); for (int i = 0; i < 10; i++) { game.BuildStright(); } game.BuildLoop(); 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(); }