コード例 #1
0
        public void BuildUpward()
        {
            RollerCoasterMaker game = new RollerCoasterMaker();

            game.BuildUpward();

            Assert.AreEqual(false, game.builder.lastBuildActionFail);
        }
コード例 #2
0
        static void Main(string[] args)
        {
            RollerCoasterMaker game = new RollerCoasterMaker();

            game.BuildUpward();
            game.BuildDownward();
            game.BuildLoop();
            game.Back();
            game.BuildStright();
            game.BuildStright();
            game.BuildStright();
        }
コード例 #3
0
        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);
        }