public void setup() { example = new Example(); failingExpectation = CreateSubstituteExpectation(e => e.IsFail.Returns(true)); passingExpectation = CreateSubstituteExpectation(e => e.IsPass.Returns(true)); pendingExpectation = CreateSubstituteExpectation(e => e.IsPending.Returns(true)); exampleReporter = Substitute.For<IExampleReporter>(); }
public Example Run(Action specifyExpectations, IExampleReporter exampleReporter) { var example = new Example(); spec.SetUpAction = () => spec.Example = example; spec.TearDownAction = () => example.Run(exampleReporter); specifyExpectations(); return example; }
public Example Run(Action specifyExpectations, IExampleReporter exampleReporter) { var example = new Example(); spec.Example = example; specifyExpectations(); example.Run(exampleReporter); return example; }
public void setup() { example = new Example(); failingExpectation = CreateSubstituteExpectation(e => e.IsFail.Returns(true)); passingExpectation = CreateSubstituteExpectation(e => e.IsPass.Returns(true)); pendingExpectation = CreateSubstituteExpectation(e => e.IsPending.Returns(true)); exampleReporter = Substitute.For <IExampleReporter>(); }
public Example Run(Action specifyExpectations, IExampleReporter exampleReporter) { var example = new Example(); spec.SetUpAction = () => spec.Example = example; spec.TearDownAction = () => example.Run(exampleReporter); specifyExpectations(); return(example); }
public Example Run(Action specifyExpectations, IExampleReporter exampleReporter) { var example = new Example(); spec.Example = example; specifyExpectations(); example.Run(exampleReporter); return(example); }
void Run(IExpectation expectation, IExampleReporter reporter) { expectation.Run(); reporter.ReportExpectation(expectation); }
public void Run(IExampleReporter reporter) { expectations.ForEach(e => Run(e, reporter)); }