/// ------------------------------------------------------------------------------------ public void ValidateOrGroups(string item) { var orGroupValidator = new OrGroupValidator(_project); var match = PatternParser.FindInnerMostBracesPair(item); while (match.Success) { orGroupValidator.Verify(match.Value); if (orGroupValidator.HasErrors) { Errors.AddRange(orGroupValidator.Errors); } match = match.NextMatch(); } }
public void Verify_ContainsNoGroups_ReturnsNoErrors() { _validator.Verify("{a,b,c}"); Assert.IsFalse(_validator.HasErrors); }