//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testPasswordWithoutSpecialChar() public virtual void testPasswordWithoutSpecialChar() { PasswordPolicyResult result = identityService.checkPasswordAgainstPolicy(policy, "LongPassw0rd"); checkThatPasswordWasInvalid(result); PasswordPolicyRule rule = result.ViolatedRules[0]; assertThat(rule.Placeholder, @is(PasswordPolicySpecialCharacterRuleImpl.PLACEHOLDER)); assertThat(rule, instanceOf(typeof(PasswordPolicySpecialCharacterRuleImpl))); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testShortPassword() public virtual void testShortPassword() { PasswordPolicyResult result = identityService.checkPasswordAgainstPolicy(policy, "Pas$w0rd"); checkThatPasswordWasInvalid(result); PasswordPolicyRule rule = result.ViolatedRules[0]; assertThat(rule.Placeholder, @is(PasswordPolicyLengthRuleImpl.PLACEHOLDER)); assertThat(rule, instanceOf(typeof(PasswordPolicyLengthRuleImpl))); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testPasswordWithoutLowerCase() public virtual void testPasswordWithoutLowerCase() { PasswordPolicyResult result = identityService.checkPasswordAgainstPolicy(policy, "LONGPAS$W0RD"); checkThatPasswordWasInvalid(result); PasswordPolicyRule rule = result.ViolatedRules[0]; assertThat(rule.Placeholder, @is(PasswordPolicyLowerCaseRuleImpl.PLACEHOLDER)); assertThat(rule, instanceOf(typeof(PasswordPolicyLowerCaseRuleImpl))); }
public CheckPasswordPolicyRuleDto(PasswordPolicyRule rule, bool valid) : base(rule) { this.valid = valid; }