예제 #1
0
        public void TestLocalMtdbLoader(string path, MassTagDatabaseFormat format)
        {
            var input = new InputDatabase
            {
                DatabaseFormat  = format,
                LocalPath       = path
            };

            var options  = new MassTagDatabaseOptions();
            var loader   = MtdbLoaderFactory.Create(input, options);
            Assert.NotNull(loader);

            var database = loader.LoadDatabase();
            Assert.NotNull(database);
            Assert.Greater(database.MassTags.Count, 100);
        }
예제 #2
0
        public void TestLocalMtdbLoader(string path, MassTagDatabaseFormat format, int expectedNumberOfTargets)
        {
            var input = new InputDatabase
            {
                DatabaseFormat  = format,
                LocalPath       = path
            };

            var options = new MassTagDatabaseOptions();
            var loader = MtdbLoaderFactory.Create(input, options);
            Assert.NotNull(loader);

            var database = loader.LoadDatabase();
            Assert.NotNull(database);
            Assert.AreEqual(database.MassTags.Count, expectedNumberOfTargets);
        }
예제 #3
0
        public void TestLocalMtdbLoader(string path, MassTagDatabaseFormat format, int expectedNumberOfTargets)
        {
            var input = new InputDatabase
            {
                DatabaseFormat = format,
                LocalPath      = path
            };

            var options = new MassTagDatabaseOptions();
            var loader  = MtdbLoaderFactory.Create(input, options);

            Assert.NotNull(loader);

            var database = loader.LoadDatabase();

            Assert.NotNull(database);
            Assert.AreEqual(database.MassTags.Count, expectedNumberOfTargets);
        }
예제 #4
0
        public void TestLocalMtdbLoader(string path, MassTagDatabaseFormat format)
        {
            var input = new InputDatabase
            {
                DatabaseFormat = format,
                LocalPath      = path
            };

            var options = new MassTagDatabaseOptions();
            var loader  = MtdbLoaderFactory.Create(input, options);

            Assert.NotNull(loader);

            var database = loader.LoadDatabase();

            Assert.NotNull(database);
            Assert.Greater(database.MassTags.Count, 100);
        }
예제 #5
0
 public InputDatabase(MassTagDatabaseFormat format) :
     this()
 {
     DatabaseFormat = format;
 }
예제 #6
0
 public InputDatabase(MassTagDatabaseFormat format)
     : this()
 {
     DatabaseFormat = format;
 }