Last active
August 29, 2015 14:26
-
-
Save borismod/6dee1bb5950af39eb200 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [TestFixture] | |
| public class FileCopierTests | |
| { | |
| [Test] | |
| public void CopyFile_SourceFileExistsDestinationDirDoesNotExist_DestinationFileCopied() | |
| { | |
| // Arrange | |
| var mockFileSystem = new MockFileSystem(); | |
| mockFileSystem.AddFile(@"c:\file.txt", MockFileData.NullObject); | |
| var cleanFileCopier = new CleanFileCopier(mockFileSystem); | |
| // Act | |
| cleanFileCopier.CopyFile(@"c:\file.txt", @"c:\users\borismod.net"); | |
| // Assert | |
| Assert.IsTrue(mockFileSystem.File.Exists(@"c:\users\borismod.net\file.txt")); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment