public void CanCreateLocalRootFromDirectoryPath() { var api = new WindowsFileSystemApi(); var root = api.CreateStorageRoot(@"C:\temp\root-dir\", FileSystemCasing.Unspecified); Assert.That(root, Is.Not.Null); Assert.That(root.Casing, Is.Not.EqualTo(FileSystemCasing.Unspecified)); }
public void CannotCreateLocalRootFromFilePath() { var api = new WindowsFileSystemApi(); Assert.Throws <ArgumentException>(() => api.CreateStorageRoot(@"C:\temp\root-file", FileSystemCasing.Unspecified), "Not a directory path"); }