示例#1
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);
        }
示例#2
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);
        }