示例#1
0
        public void HasAReadableDescription()
        {
            Matcher    negated    = new MatcherWithDescription("<negated>");
            NotMatcher notMatcher = new NotMatcher(negated);

            AssertDescription.IsComposed(notMatcher, "not {0}", negated);
        }
示例#2
0
        public void HasAReadableDescription()
        {
            Matcher left  = new MatcherWithDescription("<left>");
            Matcher right = new MatcherWithDescription("<right>");

            AssertDescription.IsComposed(new OrMatcher(left, right), "'{0}' or '{1}'", left, right);
        }
示例#3
0
 public void ReturnsAReadableDescription()
 {
     stringMatcher.DescribeToOutput = "<stringMatcher description>";
     AssertDescription.IsComposed(matcher, "an object with a string representation that is {0}", stringMatcher);
 }