public void HasAReadableDescription() { Matcher negated = new MatcherWithDescription("<negated>"); NotMatcher notMatcher = new NotMatcher(negated); AssertDescription.IsComposed(notMatcher, "not {0}", negated); }
public void HasAReadableDescription() { Matcher left = new MatcherWithDescription("<left>"); Matcher right = new MatcherWithDescription("<right>"); AssertDescription.IsComposed(new OrMatcher(left, right), "'{0}' or '{1}'", left, right); }
public void ReturnsAReadableDescription() { stringMatcher.DescribeToOutput = "<stringMatcher description>"; AssertDescription.IsComposed(matcher, "an object with a string representation that is {0}", stringMatcher); }