public void Folder_Path_Is_Null_For_Check_Existence() { string path = null; var mockFileSystem = new MockFileSystem(); var sut = new FolderManager(mockFileSystem); Assert.That(() => sut.IsFolderExists(path), Throws.TypeOf <ArgumentNullException>()); }
public void Folder_Exists_By_Path() { string path = @"C:\\TargetFolder\Target"; var mockFileSystem = new MockFileSystem(); mockFileSystem.AddDirectory(path); var sut = new FolderManager(mockFileSystem); Assert.That(sut.IsFolderExists(path), Is.True); }