コード例 #1
0
        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);
        }
コード例 #2
0
        public void BuildUp()
        {
            RollerCoasterMaker game = new RollerCoasterMaker();


            game.BuildUp();

            Assert.AreEqual(67, game.coaster.TrackCount);
        }
コード例 #3
0
        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);
        }