public void Returns_empty_for_non_describably_matcher_when_specification_is_for_an_incompatible_type() { var matcher = new MatcherNotSupportingDescribe(); var subject = new ArgumentSpecification(typeof(int), matcher); var result = subject.DescribeNonMatch("not an int"); Assert.That(result, Is.Empty); }
public void Returns_empty_when_matcher_does_not_support_describing_non_matches() { var matcher = new MatcherNotSupportingDescribe(); var subject = new ArgumentSpecification(typeof(object), matcher); var result = subject.DescribeNonMatch(new object()); Assert.That(result, Is.Empty); }