Пример #1
0
        public void AddUser_WhenPasswordHasNoUpperCase_Throws(string username, string password)
        {
            var lm = new Fake_LoginManagerWithFutureObject();

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

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

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