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; }
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; }
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; } }