public void HasErrors_WhenNoErrors_ShouldReturnFalse() { //---------------Arrange------------------ //---------------Act---------------------- var renderedDocumentOutput = new RenderedDocumentOutput(); //---------------Assert------------------- Assert.False(renderedDocumentOutput.HasErrors()); }
public void HasErrors_Errors_ShouldReturnTrue() { //---------------Arrange------------------ var renderedDocumentOutput = new RenderedDocumentOutput(); //---------------Act---------------------- renderedDocumentOutput.ErrorMessages.Add("error 1"); //---------------Assert------------------- Assert.True(renderedDocumentOutput.HasErrors()); }
private bool Render_Errors(RenderedDocumentOutput output) { return(output.HasErrors()); }