public void NoDeletedFiles_WhenShouldDeleteOldTestResultFilesTrue()
        {
            var consoleArgumentsProvider = Mock.Create <IConsoleArgumentsProvider>();
            var newFileName = Path.GetTempFileName();
            var file        = File.CreateText(newFileName);

            file.Close();

            Mock.Arrange(() => consoleArgumentsProvider.ShouldDeleteOldTestResultFiles).Returns(false);
            var fileSystemProvider = new FileSystemProvider(consoleArgumentsProvider);

            fileSystemProvider.DeleteTestResultFiles();

            Assert.IsTrue(File.Exists(newFileName));
        }
        public void DeletedFirstFile_WhenShouldDeleteOldTestResultFilesFilesAndSecondFileNotExist()
        {
            var consoleArgumentsProvider = Mock.Create <IConsoleArgumentsProvider>();
            var newFileName = Path.GetTempFileName();
            var file        = File.CreateText(newFileName);

            file.Close();
            Mock.Arrange(() => consoleArgumentsProvider.ShouldDeleteOldTestResultFiles).Returns(true);
            Mock.Arrange(() => consoleArgumentsProvider.TestResultPath).Returns(newFileName);
            Mock.Arrange(() => consoleArgumentsProvider.NewTestResultPath).Returns(newFileName);
            var fileSystemProvider = new FileSystemProvider(consoleArgumentsProvider);

            fileSystemProvider.DeleteTestResultFiles();

            Assert.IsFalse(File.Exists(newFileName));
        }