Пример #1
0
            public void WhenFileHasHeader_ThenReturnHeader()
            {
                var fileInfo = FileTestBuilder.InFileSystem
                               .WithFilePath(Path.Combine(WorkingDir, "Test1.csv"))
                               .WithText(CsvHeader)
                               .Build();

                var result = _sut.ReadHeader(fileInfo.FullName);

                Assert.That(result.Values, Is.EquivalentTo(CsvHeader.Split(',')));
            }