示例#1
0
        public void Verify_HashPassword_Hashes_a_Password()
        {
            PasswordEncryptor hasher   = new PasswordEncryptor();
            string            password = "******";
            string            hash     = hasher.HashPassword(password);

            Assert.That(hash.Length, Is.GreaterThan(0));
        }
示例#2
0
 public void HashPassword_Should_Return_an_Exception_if_the_Provided_Password_is_Empty()
 {
     PasswordEncryptor hasher = new PasswordEncryptor();
     string            hash   = hasher.HashPassword(string.Empty);
 }