示例#1
0
        public void textMarkerHandling_NotTextMarkerInRow_ReturnExpectedListOfStrings()
        {
            //Arrange
            string        row             = "V1;V2;V3;V4";
            List <string> expectedOutcome = new List <string> {
                "V1", "V2", "V3", "V4"
            };

            AsciiFileReaderInfo info = new AsciiFileReaderInfo();

            info.Seperator = TextSeperator.semicolon;

            AsciiReader reader = new AsciiReader(new StructuredDataStructure(), info);

            //Act

            List <string> values = reader.TextMarkerHandling(row,
                                                             AsciiFileReaderInfo.GetSeperator(TextSeperator.semicolon),
                                                             AsciiFileReaderInfo.GetTextMarker(TextMarker.quotes));

            //Assert

            Assert.That(values.Count, Is.EqualTo(expectedOutcome.Count));
            Assert.That(values, Is.EquivalentTo(expectedOutcome));
        }