internal void InvokeTestCaseFound(object sender, TestCaseFoundEventArgs args) { if (!this.DisableInvoke && this.onTestCaseFound != null) { this.onTestCaseFound.Invoke(sender, args); } }
private void onTestCaseFoundHandler(object sender, TestCaseFoundEventArgs e) { if (this.settings.JavaScriptTestFramework == JSTestFramework.Jest) { string package = ""; using (IEnumerator <string> enumer = sources.GetEnumerator()) { enumer.MoveNext(); package = enumer.Current; } e.TestCase.SetPropertyValue(TestProperty.Register("jestConfigPath", "jestConfigPath", typeof(string), typeof(JSTest.TestRunner)), package); } this.discoverySink.SendTestCase(e.TestCase); }