コード例 #1
0
        static void Main(string[] args)
        {
            TractorTest tractorTest = new TractorTest();

            tractorTest.TestShouldMoveForward();
            tractorTest.TestShouldThrowExceptionIfFallsOffPlateau();
            tractorTest.TestShouldTurn();
            tractorTest.TestShouldTurnAndMoveInTheRightDirection();

            TankTest tankTest = new TankTest();

            tankTest.TestShouldMoveForward();
            tankTest.TestShouldThrowExceptionIfFallsOffPlateau();
            tankTest.TestShouldTurn();
            tankTest.TestShouldTurnAndMoveInTheRightDirection();
            tankTest.TestShouldMoveForwardTurnShot();

            GuardTowerTest guardTowerTest = new GuardTowerTest();

            guardTowerTest.TestShouldMoveForward();
            guardTowerTest.TestShouldTurn();
            guardTowerTest.TestShouldMoveTurnShot();

            UnitModelTest unitModelTest = new UnitModelTest();

            unitModelTest.TestShouldMoveForward();
            unitModelTest.TestShouldMoveTurn();

            Console.ReadLine();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            TractorTest test = new TractorTest();

            test.TestShouldMoveForward();
            test.TestShouldThrowExceptionIfFallsOffPlateau();
            test.TestShouldTurn();
            test.TestShouldTurnAndMoveInTheRightDirection();
        }