Пример #1
0
 public override void Describe(IDescription description)
 {
     description.AppendList(
         "[",
         ", ",
         "]",
         // ReSharper disable once CoVariantArrayConversion
         _elementMatchers);
 }
Пример #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);
            }
Пример #3
0
 public override void Describe(IDescription description)
 {
     description.AppendList("(", " " + "and" + " ", ")", _matchers);
 }
Пример #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);
 }
Пример #6
0
 public override void Describe(IDescription description)
 {
     description.AppendText("IEnumerable with items ");
     description.AppendList("[", ", ", "]", _matchers);
     description.AppendText(" in any order");
 }
Пример #7
0
 public void describeTo(IDescription description, string operation)
 {
     description.AppendList("(", " " + operation + " ", ")", _matchers);
 }