예제 #1
0
        public void ConversionPipelineTest()
        {
            // arrange
            var logFactory = new NullLoggerFactory();
            var input      = new InputFormat[1] {
                new InputFormat("test13;4803;1835;1558")
            };

            // act
            var formatA = Transformations.ConvertCSVToFormatA(input, logFactory.CreateLogger("mock"));
            var formatB = Transformations.ConvertFormatAToFormatB(formatA, logFactory.CreateLogger("mock"));

            // assert
            Assert.AreEqual("test13", formatA[0].N, "Name property should be equal to first part of CSV line");
        }