public void TestSubFileSystem() { var fs = FileSystemProvider.DetermineFileSystem(this.outputDirectory.FullName).Item1; Assert.IsInstanceOfType(fs, typeof(SubFileSystem)); Assert.AreEqual(this.outputDirectory.ToUPath(), ((SubFileSystem)fs).SubPath); }
public void TestSqliteFileSystem() { var path = this.outputDirectory.FullName + "\\test.sqlite3"; var fs = FileSystemProvider.DetermineFileSystem(path).Item1; Assert.IsInstanceOfType(fs, typeof(SqliteFileSystem)); StringAssert.Contains(((SqliteFileSystem)fs).ConnectionString, path); Assert.IsTrue(File.Exists(path)); }
public void TestSqliteFileSystem() { var path = this.TestOutputDirectory.FullName + "\\test.sqlite3"; var fs = FileSystemProvider.DetermineFileSystem(path).Item1; throw new PlatformNotSupportedException("See https://github.com/QutEcoacoustics/audio-analysis/issues/289"); /*Assert.IsInstanceOfType(fs, typeof(SqliteFileSystem)); * * StringAssert.Contains(((SqliteFileSystem)fs).ConnectionString, path); * Assert.IsTrue(File.Exists(path)); */ }
public void TestInvalidFileSystem() { Assert.ThrowsException <NotSupportedException>( () => FileSystemProvider.DetermineFileSystem(Path.Join(this.TestOutputDirectory.FullName, "test.zip"))); }
public void TestFullFileSystem(string path) { var fs = FileSystemProvider.DetermineFileSystem(path).Item1; Assert.IsInstanceOfType(fs, typeof(FileSystem)); }