コード例 #1
0
        public void Policy_EmptySymbols()
        {
            var policy = new PwSafe.PasswordPolicy(10);

            policy.SetSpecialSymbolSet(new char[] { '!' });
            policy.SetSpecialSymbolSet();
            Assert.Equal("", new string(policy.GetSpecialSymbolSet()));
        }
コード例 #2
0
        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()));
        }