示例#1
0
        public void Part1Answers()
        {
            string s1 = "278384";
            string s2 = "824795";

            long result = Part1.NumberOfPasswords(s1, s2);

            Assert.Equal(921, result);
        }
示例#2
0
        static void Main(string[] args)
        {
            var solve1 = new Part1().Solve();

            Console.WriteLine(solve1);
            var solve2 = new Part2().Solve();

            Console.WriteLine(solve2);
        }
示例#3
0
        public void BaseCases(string password, bool isValidExpected)
        {
            bool isValid = Part1.IsValidPassword(password);

            Assert.Equal(isValidExpected, isValid);
        }