public void TestRoundTrip()
        {
            String sourcePath = Path.Combine(this.ResourceDirectory, @"CSV\sample.csv");
            String targetPath = Path.Combine(WorkingDirectory, "sample.csv");

            CsvCollectionSource source = new CsvCollectionSource(sourcePath);
            CsvCollectionTarget target = new CsvCollectionTarget(targetPath);

            target.Write(source);

            CsvCollectionSource targetAsSource = new CsvCollectionSource(targetPath);
            AssertCollectionsEqual(source, targetAsSource);
        }
Exemplo n.º 2
0
        public void TestRoundTrip()
        {
            String sourcePath = Path.Combine(this.ResourceDirectory, @"CSV\sample.csv");
            String targetPath = Path.Combine(WorkingDirectory, "sample.csv");

            CsvCollectionSource source = new CsvCollectionSource(sourcePath);
            CsvCollectionTarget target = new CsvCollectionTarget(targetPath);

            target.Write(source);

            CsvCollectionSource targetAsSource = new CsvCollectionSource(targetPath);

            AssertCollectionsEqual(source, targetAsSource);
        }