예제 #1
0
        public BrowserPlatformTest()
        {
            PlatformTest platform = new PlatformTest();
            AddDependentObject(platform);

            BrowserTest browser = new BrowserTest();
            AddDependentObject(browser);

            mBrowserPlatform = new BrowserPlatform();
            mBrowserPlatform.Platform = platform.Platform;
            mBrowserPlatform.Browser = browser.Browser;
        }
예제 #2
0
        public BrowserPlatformTest()
        {
            PlatformTest platform = new PlatformTest();

            AddDependentObject(platform);

            BrowserTest browser = new BrowserTest();

            AddDependentObject(browser);

            mBrowserPlatform          = new BrowserPlatform();
            mBrowserPlatform.Platform = platform.Platform;
            mBrowserPlatform.Browser  = browser.Browser;
        }
예제 #3
0
    private void Awake()
    {
        try
        {
            PlatformTest testClass = new PlatformTest();
            platformText.text = testClass.Platform;

            TestResult results = testClass.RunTest();
            if (results == TestResult.Failure)
            {
                resultsText.color = Color.red;
            }
            else if (results == TestResult.PlatformNotTested)
            {
                resultsText.color = Color.yellow;
            }
            resultsText.text = results.ToString();
        }
        catch (Exception ex)
        {
            resultsText.text  = $"Test Failed; exception:\r\n {ex.ToString()}";
            resultsText.color = Color.red;
        }
    }