示例#1
0
 public void Should_not_display_empty_comments(string comment)
 {
     _subject.RunScenario(call => Step_with_comment(comment));
     _progressNotifier.AssertWasCalled(n => n.NotifyStepStart(Arg <string> .Is.Anything, Arg <int> .Is.Anything, Arg <int> .Is.Anything));
     _progressNotifier.AssertWasNotCalled(n => n.NotifyStepComment(Arg <int> .Is.Anything, Arg <int> .Is.Anything, Arg <string> .Is.Anything));
     _progressNotifier.AssertWasCalled(n => n.NotifyStepFinished(Arg <IStepResult> .Matches(r => r.Number == 1 && r.Status == ResultStatus.Passed), Arg <int> .Is.Equal(1)));
 }