public void Policy_EmptySymbols() { var policy = new PwSafe.PasswordPolicy(10); policy.SetSpecialSymbolSet(new char[] { '!' }); policy.SetSpecialSymbolSet(); Assert.Equal("", new string(policy.GetSpecialSymbolSet())); }
public void Policy_DuplicateSymbols() { var policy = new PwSafe.PasswordPolicy(10); policy.SetSpecialSymbolSet(new char[] { 'A', 'B', 'B', 'A', 'a', 'b', 'b', 'a' }); Assert.Equal("ABab", new string(policy.GetSpecialSymbolSet())); }