예제 #1
0
 internal void InvokeTestCaseFound(object sender, TestCaseFoundEventArgs args)
 {
     if (!this.DisableInvoke && this.onTestCaseFound != null)
     {
         this.onTestCaseFound.Invoke(sender, args);
     }
 }
예제 #2
0
 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);
 }