public void Verify_WhenPasswordHasNoNumber_Throws(string password)
        {
            var passwordVerifier = new PasswordVerifier();

            Action <string> verify = passwordVerifier.Verify;

            var exception = Assert.Throws <Exception>(() => verify(password));

            StringAssert.Contains(PasswordVerifier.PasswordHasNoNumber, exception.Message);
        }
        public void Verify_WhenPasswordNotLargerThan8_Throws(string password)
        {
            var passwordVerifier = new PasswordVerifier();

            Action <string> verify = passwordVerifier.Verify;

            var exception = Assert.Throws <Exception>(() => verify(password));

            StringAssert.Contains(PasswordVerifier.PasswordTooShortErrorMsg, exception.Message);
        }
        public void Verify_WhenPasswordIsNull_Throws()
        {
            var    passwordVerifier = new PasswordVerifier();
            string password         = null;

            Action <string> verify = passwordVerifier.Verify;

            var exception = Assert.Throws <Exception>(() => verify(password));

            StringAssert.Contains(PasswordVerifier.PasswordIsNullErrorMsg, exception.Message);
        }