Exemplo n.º 1
0
        public void PartTwo()
        {
            var input    = Helpers.FileHelper.ParseFile(InputFile);
            var detector = new AllergenDetector(input);

            string danger = detector.GetCanonicalDangerousIngredientList();

            Assert.IsTrue(danger == "lmcqt,kcddk,npxrdnd,cfb,ldkt,fqpt,jtfmtpd,tsch");
        }
Exemplo n.º 2
0
        public void Test_KnownAllergens()
        {
            var input    = Helpers.FileHelper.ParseFile(TestFile);
            var detector = new AllergenDetector(input);

            int count = detector.CountNonAllergenOccurrence();

            Assert.IsTrue(count == 5);

            string danger = detector.GetCanonicalDangerousIngredientList();

            Assert.IsTrue(danger == "mxmxvkd,sqjhc,fvjkl");
        }