mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
ZoneCodeGenerator: Add test case for MatcherArray with an invalid enum value name
This commit is contained in:
parent
117ba118af
commit
7117eb4506
@ -79,6 +79,21 @@ namespace ZoneCodeGeneratorTests.Parsing.Matching.Matchers
|
||||
Assert.AreEqual(3, result.ConsumedTokenCount);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void EnsureInvalidEnumValueNameIsNotRecognized()
|
||||
{
|
||||
tokens.AddRange(new List<string>
|
||||
{
|
||||
"[", "09INVALID", "]"
|
||||
});
|
||||
|
||||
var matcher = new MatcherArray();
|
||||
var result = matcher.Test(matchingContext, 0);
|
||||
|
||||
Assert.IsFalse(result.Successful);
|
||||
Assert.AreEqual(0, result.ConsumedTokenCount);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void EnsureFirstSquareBracketIsRequiredToBeRecognized()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user