Ejemplo n.º 1
0
        public void FindBlue()
        {
            string raw = "5601 XL221 blue 622-14-323455-24 rockfish 632";

            List <string> colorsFound = new RawProcessor().DetectPrimaryColors(raw);

            Assert.IsTrue(colorsFound.Contains("blue"));
        }
Ejemplo n.º 2
0
        public void Bug35()
        {
            string raw = "I listen to the Blues.";

            List <string> colorsFound = new RawProcessor().DetectPrimaryColors(raw);

            Assert.IsTrue(colorsFound.Contains("blue"));
        }
Ejemplo n.º 3
0
        public void FindYellow()
        {
            string raw = "Pass some yellow mustard, please.";

            List <string> colorsFound = new RawProcessor().DetectPrimaryColors(raw);

            Assert.IsTrue(colorsFound.Contains("yellow"));
        }
Ejemplo n.º 4
0
        public void FindMultipleColors()
        {
            string raw = "'My favorite color is red!' she exclaimed, while hailing a yellow taxi.";

            List <string> colorsFound = new RawProcessor().DetectPrimaryColors(raw);

            Assert.IsTrue(colorsFound.Contains("yellow"));
            Assert.IsTrue(colorsFound.Contains("red"));
        }