Exemple #1
0
 public override void Describe(IDescription description)
 {
     description.AppendText("a string containing ");
     if (_comparison == StringComparison.CurrentCulture)
     {
         description.AppendText("with current culture ");
     }
     description.AppendValueList("", ", ", "", _substrings);
     description.AppendText(" in order");
 }
Exemple #2
0
            public bool IsFinished(IEnumerable <TM> items)
            {
                if (_matchers.Count == 0)
                {
                    return(true);
                }

                _description.AppendText("no item matches: ");
                _description.AppendList("", ", ", "", _matchers);
                _description.AppendText(" in ");
                _description.AppendValueList("[", ", ", "]", items);
                return(false);
            }
Exemple #3
0
 protected override void DescribeMismatchSafely(IEnumerable <T> enumerable, IDescription mismatchDescription)
 {
     mismatchDescription.AppendValueList("[", ",", "]", enumerable);
 }
Exemple #4
0
 public override void Describe(IDescription description)
 {
     description.AppendText("one of ");
     description.AppendValueList("{", ", ", "}", _collection);
 }