예제 #1
0
        public void KnownPasswordsShouldBeValid()
        {
            var pwd = new PasswordFile("htpasswd.txt");

            Assert.True(pwd.IsValid("admin", "test"));
            Assert.True(pwd.IsValid("user", "test"));
        }
예제 #2
0
        public void OriginalWagoPasswordsShouldBeValid()
        {
            var pwd = new PasswordFile("lighttpd-htpasswd.user");

            Assert.True(pwd.IsValid("admin", "wago"));
            Assert.True(pwd.IsValid("user", "user"));
        }