mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
ZoneCodeGenerator: Add tests for Matchers to test TokenOffset and Tag behaviour
This commit is contained in:
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user