Example #1
0
 public override void Describe(IDescription description)
 {
     description.AppendList(
         "[",
         ", ",
         "]",
         // ReSharper disable once CoVariantArrayConversion
         _elementMatchers);
 }
Example #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);
            }
Example #3
0
 public override void Describe(IDescription description)
 {
     description.AppendList("(", " " + "and" + " ", ")", _matchers);
 }
Example #4
0
 public override void DescribeTo(IDescription description)
 {
     description.AppendList("(", " " + "and" + " ", ")", FakeLinq.Cast <ISelfDescribing>(matchers));
 }
 public override void Describe(IDescription description)
 {
     description.AppendText("IEnumerable containing ");
     description.AppendList("[", ", ", "]", _matchers);
 }
Example #6
0
 public override void Describe(IDescription description)
 {
     description.AppendText("IEnumerable with items ");
     description.AppendList("[", ", ", "]", _matchers);
     description.AppendText(" in any order");
 }
Example #7
0
 public void describeTo(IDescription description, string operation)
 {
     description.AppendList("(", " " + operation + " ", ")", _matchers);
 }