Example #1
0
        public void RecogniseAZero_GivenSingleToken_Recognises()
        {
            var ocr = new Ocr(new []{new ZeroRecogniser(), });
            var token = new Token
            {
                Raw = new List<string>
                {
                    {" _ "},
                    {"| |"},
                    {"|_|"}
                }
            };

            var digits = ocr.Recognise(token);

            Assert.That(digits[0], Is.EqualTo(0));
        }
Example #2
0
        public void RecogniseAZero_GivenSingleToken_Recognises()
        {
            var ocr   = new Ocr(new [] { new ZeroRecogniser(), });
            var token = new Token
            {
                Raw = new List <string>
                {
                    { " _ " },
                    { "| |" },
                    { "|_|" }
                }
            };

            var digits = ocr.Recognise(token);

            Assert.That(digits[0], Is.EqualTo(0));
        }