Exemplo n.º 1
0
        public void Parse_Fucking_Everything()
        {
            using (var fileData = new DataSource().Open("examples"))
            {
                var data = new OcrParser().Parse(fileData);

                Assert.That(data.Count(), Is.EqualTo(12), "We should get 12 rows back");
                Assert.That(data.First().Count(), Is.EqualTo(9), "We should get 9 numbers back from the first row");
                Assert.That(data.First().All(x => x == 0), "Every number should equal 0");
            }
        }
Exemplo n.º 2
0
        public void Chunk_ReturnsExpectedStrings()
        {
            using (var fileData = new DataSource().Open("examples"))
            {
                var chunkedData = new OcrParser().Chunk(fileData);

                var row1 = chunkedData.First();

                var character1 = row1.First();

                Assert.That(character1 != null);
            }
        }