예제 #1
0
            public void Should_evaluate_according_to_sample_data(
                int min,
                int max,
                char @char,
                string input,
                bool expected)
            {
                var policy = new PasswordPolicy
                {
                    Min  = min,
                    Max  = max,
                    Char = @char
                };

                var result = policy.Evaluate(input);

                Assert.Equal(expected, result);
            }