public void When_ExceptionIsCreatedWithLineInfo_AppropriateMessageIsProduced() { var exception = new TemplateExpressionException("test", new LineInfo() { LineNumber = 1, LinePosition = 1, }); Assert.Equal("Line Number: 1, Position: 1. test", exception.Message); }
public void When_ExceptionIsCreatedWithEmptyLineInfo_AppropriateMessageIsProduced() { var exception = new TemplateExpressionException("test", new LineInfo()); Assert.Equal("test", exception.Message); }
public void When_ExceptionIsCreatedWithNoParams_AppropriateMessageIsProduced() { var exception = new TemplateExpressionException(); Assert.NotEmpty(exception.Message); }