コード例 #1
0
 public TestsExecutionFinishedEventArgs(ComposedUnitTestOutcome results)
 {
     Results = results;
 }
コード例 #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);
        }
コード例 #3
0
 private void OnFinished(ComposedUnitTestOutcome results)
 {
     var handler = TestsExecutionFinished;
     if (handler != null)
     {
         handler(this, new TestsExecutionFinishedEventArgs(results));
     }
 }
コード例 #4
0
        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);
        }