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"); }
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); }
protected override void DescribeMismatchSafely(IEnumerable <T> enumerable, IDescription mismatchDescription) { mismatchDescription.AppendValueList("[", ",", "]", enumerable); }
public override void Describe(IDescription description) { description.AppendText("one of "); description.AppendValueList("{", ", ", "}", _collection); }