示例#1
0
        public void HasErrors_WhenNoErrors_ShouldReturnFalse()
        {
            //---------------Arrange------------------
            //---------------Act----------------------
            var renderedDocumentOutput = new RenderedDocumentOutput();

            //---------------Assert-------------------
            Assert.False(renderedDocumentOutput.HasErrors());
        }
示例#2
0
        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());
 }