Exemplo n.º 1
0
        public void ReadTextFileCommaSeparated_WhenFileExists_ShouldReturnTheLines()
        {
            // create file
            var content = new List <string> {
                "Word 1, Word 2, Word 3"
            };

            TestDataHelper.CreateTestFile(this.testFileName, content);
            this.fileHandler = new FileHandler(testFileName);

            var result = fileHandler.ReadTextFileCommaSeparated();

            Assert.AreEqual(result.Count, 3);
        }