예제 #1
0
        public void TestExpectingOutputToBeEmptyWhenCalledWithFilePathWhereFileIsEmpty()
        {
            string   filepath = @"D:\a\DummyReviews\DummyReviews\SenderTests\EmptySample.csv";
            CSVInput csvInput = new CSVInput(filepath);
            List <List <string> > testOutput = (List <List <string> >)csvInput.ReadInput();

            Assert.True(testOutput.Count == 0);
        }
예제 #2
0
        public void TestExpectingCSVFileToBeReadWhenCalledWithFilePath()
        {
            string   filepath = @"D:\a\DummyReviews\DummyReviews\SenderTests\TestSample.csv";
            CSVInput csvInput = new CSVInput(filepath);
            List <List <string> > testOutput = (List <List <string> >)csvInput.ReadInput();

            Debug.Assert(testOutput[0][0] == "sampledata");
            Console.WriteLine(testOutput[0][0]);
            Console.WriteLine("test");
        }