public void CalculatesLogicalConjunctionOfTwoMatchers() { for (int i = 0; i < truthTable.GetLength(0); i++) { Matcher matcher = new AndMatcher((Matcher)truthTable[i, 0], (Matcher)truthTable[i, 1]); Assert.AreEqual(truthTable[i, 2], matcher.Matches(ignored)); } }
public void Matches_should_detect_nominal() { var subj = new AndMatcher <string>(Matchers.BeEmpty(), Matchers.HaveCount(0)); Assert.True(subj.Matches(TestActual.Value(""))); }