public void ParseLinesTest_User1_AllFives() { List <string> useCase1 = new List <string>(); useCase1.Add(" _ _ _ _ _ _ _ _ _ "); useCase1.Add("|_ |_ |_ |_ |_ |_ |_ |_ |_ "); useCase1.Add(" _| _| _| _| _| _| _| _| _|"); useCase1.Add(" "); OCRAccountNumberParser parser = new OCRAccountNumberParser(); string result = parser.ParseLines(useCase1); Assert.AreEqual("555555555", result); }
public void ParseLinesTest_User1_OneToNine() { List <string> useCase1 = new List <string>(); useCase1.Add(" _ _ _ _ _ _ _ "); useCase1.Add(" | _| _||_||_ |_ ||_||_|"); useCase1.Add(" ||_ _| | _||_| ||_| _|"); useCase1.Add(" "); OCRAccountNumberParser parser = new OCRAccountNumberParser(); string result = parser.ParseLines(useCase1); Assert.AreEqual("123456789", result); }