예제 #1
0
        public void op_IEnumerable_GetEnumerator()
        {
            using (var temp = new TempDirectory())
            {
                var file = temp
                           .Info
                           .ToFile("Data.csv")
                           .AppendLine("name")
                           .AppendLine("Example");
                var sheet = new CsvDataFile(file).First();

                Assert.Equal("Data", sheet.Title);
                Assert.Equal("Example", sheet.First()["name"]);
            }
        }
예제 #2
0
        public void op_IEnumerable_GetEnumerator()
        {
            using (var temp = new TempDirectory())
            {
                var file = temp
                    .Info
                    .ToFile("Data.csv")
                    .AppendLine("name")
                    .AppendLine("Example");
                var sheet = new CsvDataFile(file).First();

                Assert.Equal("Data", sheet.Title);
                Assert.Equal("Example", sheet.First()["name"]);
            }
        }