예제 #1
0
        public void Part2Answers()
        {
            string s1 = "278384";
            string s2 = "824795";

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

            Assert.Equal(603, 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 = Part2.IsValidPassword(password);

            Assert.Equal(isValidExpected, isValid);
        }