Esempio n. 1
0
        public void StringFileReaderDoesNotReadEmptyLines()
        {
            //Arrange
            var configuration = InitConfiguration.GetSettings();
            var mockLogger    = getMockLogger();

            //Act
            var stringReader = new StringFileReader(configuration, mockLogger.Object);
            var fileContents = stringReader.ReadFromFile();

            //Assert
            Assert.AreEqual(18, fileContents.Count);
        }
Esempio n. 2
0
        public void StringFileReaderReadsFromFileSuccessfully()
        {
            //Arrange
            var configuration = InitConfiguration.GetSettings();
            var mockLogger    = getMockLogger();

            //Act
            var stringReader = new StringFileReader(configuration, mockLogger.Object);
            var fileContents = stringReader.ReadFromFile();

            //Assert
            Assert.NotZero(fileContents.Count);
        }