public void CreateDirectoryRecursively_path_to_directory_throws_FileSystemPathAlreadyExistsException() { var fileSystemMock = new MockCommonFileSystemCreateDirectoryRecursively(); fileSystemMock.SetPathExistance(_testPath, MockCommonFileSystem.PathExistance.Directory); fileSystemMock.CreateDirectoryRecursively(_testPath); }
public void CreateDirectoryRecursively_path_not_exists_should_work() { var fileSystemMock = new MockCommonFileSystemCreateDirectoryRecursively(); fileSystemMock.CreateDirectoryRecursively(_testPath); Assert.That(fileSystemMock.Called); AssertPath(fileSystemMock.Path); }