public void Should_return_a_success_notification_if_the_Statement_result_does_not_have_errors() { var executionArguments = new ExecutionArguments { Statement = Notification.Empty.ToNotification<Statement>() }; var result = new RequireStatement().Check(executionArguments); result.IsValid.ShouldBeTrue(); }
public void Should_return_an_error_notification_if_the_Statement_result_has_errors() { var executionArguments = new ExecutionArguments { Statement = Notification.ErrorFor("pretend").ToNotification<Statement>() }; var result = new RequireStatement().Check(executionArguments); result.IsValid.ShouldBeFalse(); }