public void Should_count_common_questions()
        {
            var customCustoms   = new CustomCustoms();
            var questions       = "abc ab abd";
            var commonQuestions = customCustoms.getDuplicateQuestionsForGroup(questions);

            Assert.Equal(2, commonQuestions.Count);
        }
        public void Should_count_unique_questions_with_spaces()
        {
            var customCustoms   = new CustomCustoms();
            var questions       = "abc abc abc";
            var uniqueQuestions = customCustoms.getUniqueQuestionsForGroup(questions);

            Assert.Equal(3, uniqueQuestions.Count);
        }
Пример #3
0
        public void Day6Part2()
        {
            // Arrange
            string[] input = Helper.ParseInput(@"Inputs\\Day6_example.txt");

            //Act
            int count = CustomCustoms.GetCommonGroupPositives(input);

            //Assert
            Assert.AreEqual(6, count);
        }
Пример #4
0
        public void Day6Part1()
        {
            // Arrange
            string[] input = Helper.ParseInput(@"Inputs\\Day6_example.txt");

            //Act
            int count = CustomCustoms.GetGroupAnswers(input);

            //Assert
            Assert.AreEqual(11, count);
        }