public void MatchWith_ReturnsCorrectResult(bool areMatching) { HashedPassword hashedPassword = CreateHashedPassword(); Assert.AreEqual( areMatching, hashedPassword.MatchWith( new UnhashedPassword("password"), CreateStubPasswordHashComparerReturning(areMatching))); }