Exemple #1
0
        public void WriteDataToFileTest_Return_True()
        {
            // Arrange
            var listOfProcessedData = new Dictionary <string, int>();

            for (int i = 0; i < 10; i++)
            {
                listOfProcessedData.Add(Guid.NewGuid().ToString(), i);
            }

            var dataStructure = new DataStructure
            {
                ListOfProcessedData = listOfProcessedData
            };
            var fileSystemController = new FileSystemController(dataStructure);

            // Act
            var result = fileSystemController.WriteDataToFile();

            // Assert
            Assert.IsTrue(result);
        }