コード例 #1
0
        /// ------------------------------------------------------------------------------------
        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();
            }
        }
コード例 #2
0
 public void Verify_ContainsNoGroups_ReturnsNoErrors()
 {
     _validator.Verify("{a,b,c}");
     Assert.IsFalse(_validator.HasErrors);
 }