public TestExecutorStartedEventArgs(LighthouseUnitTestRunStartInformation info) { TestRunStartedInformation = info; }
private void OnStarted(LighthouseUnitTestRunStartInformation info) { var handler = Started; if (handler != null) { handler(this, new TestExecutorStartedEventArgs(info)); } }
public TestsExecutionStartedEventArgs(LighthouseUnitTestRunStartInformation testRunStartedEventArgs) { TestRunStartInformation = testRunStartedEventArgs; }
public void TestsStarted(string serializedLighthouseUnitTestRunStartedEventArgs) { var convertedInformation = new LighthouseUnitTestRunStartInformation(); try { convertedInformation = _serializationService.Deserialize<LighthouseUnitTestRunStartInformation>(serializedLighthouseUnitTestRunStartedEventArgs); } catch (Exception exc) { OnErrorOccured("Error while deserializing data for TestsStarted: " + exc.Message); } OnStarted(convertedInformation); }
public void OnTestRunStarting(object sender, TestRunStartingEventArgs testRunStartingEventArgs) { var args = new LighthouseUnitTestRunStartInformation() { TotalNumberOfAssemblies = testRunStartingEventArgs.EnqueuedAssemblies, TotalNumberOfMethods = testRunStartingEventArgs.Settings.TestHarness.TestMethodCount }; var serializedResult = _serializationService.Serialize(args); InvokeExternalMethod("TestsStarted", serializedResult); }
private void OnStarted(object sender, TestExecutorStartedEventArgs e) { _logger.Log(string.Format("Lighthouse v{0} (c) 2011 - Remote Unit Test Run Started.", Constants.Versions.ConsoleRunnerVersionText)); _logger.Log(string.Format("Total Test Assemblies: {0} Total Test Methods: {1}.", e.TestRunStartedInformation.TotalNumberOfAssemblies, e.TestRunStartedInformation.TotalNumberOfMethods)); TestRunInformation = e.TestRunStartedInformation; }