public void TestReturnTextWarning()
{
InkParser parser = new InkParser("== test ==\n return something",
null,
(string message, ErrorType errorType) =>
{
if (errorType == ErrorType.Warning)
{
throw new TestWarningException();
}
});
Assert.Throws<TestWarningException>(() => parser.Parse());
}