public void CheckPasswordTest() { string login = "******"; Password password = new Password(); password.AddPart(new PasswordPart("123")); password.AddPart(new PasswordPart("12")); UserBL userBL = new UserBL(login, password); Password password2 = new Password(); password2.AddPart(new PasswordPart("123")); password2.AddPart(new PasswordPart("12")); Assert.Equal(userBL.CheckPassword(password2), true); }
public void AddPartTest() { Password password = new Password(); PasswordPart pPart = new PasswordPart("123"); password.AddPart(pPart); PasswordPart pPart2 = new PasswordPart("123"); pPart2.ActionTime = TimeSpan.Zero; Assert.Equal(password.PasswordParts[0] == pPart2, true); }
public void EqualOperatorTest() { Password password = new Password(); PasswordPart pPart = new PasswordPart("123"); password.AddPart(pPart); Password password2 = new Password(); PasswordPart pPart2 = new PasswordPart("123"); password2.AddPart(pPart2); Assert.Equal(password == password2, true); }