Ejemplo n.º 1
0
 public TestsExecutionFinishedEventArgs(ComposedUnitTestOutcome results)
 {
     Results = results;
 }
Ejemplo n.º 2
0
        public void TestsFinished(string result)
        {
            var convertedResults = new ComposedUnitTestOutcome();
            try
            {
                convertedResults = _serializationService.Deserialize<ComposedUnitTestOutcome>(result);
            }
            catch (Exception exc)
            {
                OnErrorOccured("Error while deserializing Test Run Results: " + exc.Message);
            }

            OnFinished(convertedResults);
        }
Ejemplo n.º 3
0
 private void OnFinished(ComposedUnitTestOutcome results)
 {
     var handler = TestsExecutionFinished;
     if (handler != null)
     {
         handler(this, new TestsExecutionFinishedEventArgs(results));
     }
 }
        public void PublishResultsWithError(Exception error)
        {
            var errorInfo = _silverlightUnitTestAbstractionsFactory.Convert(error);
            var results = new ComposedUnitTestOutcome() {Errors = new List<IUnitTestException>() {errorInfo}};

            var serializedResult = _serializationService.Serialize(results);

            InvokeExternalMethod("TestsFinished", serializedResult);
        }