Пример #1
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);
        }
Пример #2
0
        public void HasAReadableDescription()
        {
            Matcher    negated    = new MatcherWithDescription("<negated>");
            NotMatcher notMatcher = new NotMatcher(negated);

            AssertDescription.IsComposed(notMatcher, "not {0}", negated);
        }