public void NoEmailReturnsEmptyHash() { Assert.True(GravatarHelper.CreateGravatarHash(null) == string.Empty); Assert.True(GravatarHelper.CreateGravatarHash(string.Empty) == string.Empty); }
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)); }