コード例 #1
0
        public void MatchWith_ReturnsCorrectResult(bool areMatching)
        {
            HashedPassword hashedPassword = CreateHashedPassword();

            Assert.AreEqual(
                areMatching,
                hashedPassword.MatchWith(
                    new UnhashedPassword("password"),
                    CreateStubPasswordHashComparerReturning(areMatching)));
        }