Exemplo n.º 1
0
    /*
     * // Decimal      // Binary
     *  none = 0,       // 00000000
     *  mainMenu = 1,   // 00000001
     *  preLevel = 2,   // 00000010
     *  level = 4,      // 00000100
     *  postLevel = 8,  // 00001000
     *  gameOver = 16,  // 00010000
     *  all = 0xFFFFFFF // 11111111111111111111111111111111
     */

    public void RunTest()
    {
        switch (_whatTest)
        {
        case WhatTest.TestActions:
            _checkAction.RunTest(_cycles);
            break;

        case WhatTest.TestUnityEvents:
            _checkUnityEvent.RunTest(_cycles);
            break;

        case WhatTest.TestEventDelegate:
            _checkEventDelegate.RunTest(_cycles);
            break;

        case WhatTest.all:
            _checkAction.RunTest(_cycles);
            _checkUnityEvent.RunTest(_cycles);
            _checkEventDelegate.RunTest(_cycles);
            break;
        }
    }