ZoneCodeGenerator: Add tests for Matchers to test TokenOffset and Tag behaviour

This commit is contained in:
Jan
2019-10-29 12:21:07 +01:00
parent d5ecaa186d
commit 117ba118af
10 changed files with 486 additions and 0 deletions

View File

@ -29,6 +29,9 @@ namespace ZoneCodeGeneratorTests.Parsing.Matching.Matchers
{
var result = new TokenMatchingResult(Successful, Successful ? tokenCount : 0);
if(result.Successful)
result.AppendTag(Tag);
if(!string.IsNullOrEmpty(tokenName))
result.AddNamedMatch(tokenName, "test");