Ejemplo n.º 1
0
 public void Should_subscribe_to_testrun_messages()
 {
     var message = new TestRunMessage(new TestRunResults("", "", null));
     _bus.Publish(message);
     waitForAsyncCall();
     _resultMerger.HasMergedTestResults.ShouldBeTrue();
     _view.TestRunMessage.ShouldBeTheSameAs(message);
 }
Ejemplo n.º 2
0
 public void  RecievingTestRunMessage(TestRunMessage message)
 {
     _syncContext.Post(m => relistFromCache(), null);
 }
Ejemplo n.º 3
0
 public void RecievingTestRunMessage(TestRunMessage message)
 {
     _onCacheUpdate.Invoke(_resultsCache);
 }
Ejemplo n.º 4
0
 public TestRunMessageEventArgs(TestRunMessage message)
 {
     Message = message;
 }
Ejemplo n.º 5
0
 public void Should_be_able_to_consume_testrun_messages()
 {
     var consumer = new RunMessageConsumer(_bus);
     var message = new TestRunMessage(new TestRunResults("", "", new TestResult[] {}));
     _bus.Publish<TestRunMessage>(message);
     waitForAsyncCall();
     consumer.TestRunMessageEventWasCalled.ShouldBeTrue();
 }
Ejemplo n.º 6
0
 public void RecievingTestRunMessage(TestRunMessage message)
 {
     var assembly = message.Results.Assembly;
     var failed = message.Results.Failed;
     var ignored = message.Results.Ignored;
     if (failed.Length > 0 || ignored.Length > 0)
     {
         _logger.InfoFormat("Test(s) {0} for assembly {1}", failed.Length > 0 ? "failed" : "was ignored", Path.GetFileName(assembly));
         foreach (var test in failed)
             _logger.InfoFormat("    {0} -> {1}: {2}", test.Status, test.Name, test.Message);
         foreach (var test in ignored)
             _logger.InfoFormat("    {0} -> {1}: {2}", test.Status, test.Name, test.Message);
     }
 }
Ejemplo n.º 7
0
 public void RecievingTestRunMessage(TestRunMessage message)
 {
     _testRunMessage = message;
 }