public void TestEmptyChoice()
{
int warningCount = 0;
InkParser parser = new InkParser("*", null, (string message, ErrorType errorType) =>
{
if (errorType == ErrorType.Warning)
{
warningCount++;
Assert.IsTrue(message.Contains("completely empty"));
}
else
{
Assert.Fail("Shouldn't have had any errors");
}
});
parser.Parse();
Assert.AreEqual(1, warningCount);
}