コード例 #1
0
 public void NoEmailReturnsEmptyHash()
 {
     Assert.True(GravatarHelper.CreateGravatarHash(null) == string.Empty);
     Assert.True(GravatarHelper.CreateGravatarHash(string.Empty) == string.Empty);
 }
コード例 #2
0
        public void HashResult(string email, string expectedHash)
        {
            var hash = GravatarHelper.CreateGravatarHash(email);

            Assert.True(hash == expectedHash, string.Format("Email {0} hashed into {1} but expected {2}", email, hash, expectedHash));
        }