コード例 #1
0
        public void TestSubFileSystem()
        {
            var fs = FileSystemProvider.DetermineFileSystem(this.outputDirectory.FullName).Item1;

            Assert.IsInstanceOfType(fs, typeof(SubFileSystem));

            Assert.AreEqual(this.outputDirectory.ToUPath(), ((SubFileSystem)fs).SubPath);
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
             */
        }
コード例 #4
0
 public void TestInvalidFileSystem()
 {
     Assert.ThrowsException <NotSupportedException>(
         () => FileSystemProvider.DetermineFileSystem(Path.Join(this.TestOutputDirectory.FullName, "test.zip")));
 }
コード例 #5
0
        public void TestFullFileSystem(string path)
        {
            var fs = FileSystemProvider.DetermineFileSystem(path).Item1;

            Assert.IsInstanceOfType(fs, typeof(FileSystem));
        }