Exemple #1
0
        public void AddUser_WhenPasswordHasNoUpperCase_Throws(string username, string password)
        {
            var lm = new Fake_LoginManagerWithFutureObject();

            Assert.Throws <PasswordDoesNotHaveUppercaseException>(() => lm.AddUser(username, password));
        }
Exemple #2
0
        public void AddUser_WhenPasswordNull_Throws()
        {
            var lm = new Fake_LoginManagerWithFutureObject();

            Assert.Throws <PasswordIsNullException>(() => lm.AddUser("a", null));
        }
Exemple #3
0
        public void AddUser_WhenPasswordNotMinChars_Throws(string username, string password)
        {
            var lm = new Fake_LoginManagerWithFutureObject();

            Assert.Throws <PasswordIsTooShortException>(() => lm.AddUser(username, password));
        }