protected void specify(string message) { EnsureNSpecConfiguration(); Example.AddExpectation(new PendingExpectation { Message = message }); }
protected void specify(string message, Expression <Action> expectation) { EnsureNSpecConfiguration(); Example.AddExpectation(new ActionExpectation(expectation) { Message = message }); }
protected void specify(string message, Expression <Func <bool> > expectation) { EnsureNSpecConfiguration(); Example.AddExpectation(new FuncExpectation(expectation) { Message = message }); }
public void should_pass_when_all_expectations_pass() { example.AddExpectation(passingExpectation); specify(() => example.IsPass); }