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); }
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); }
public InputDatabase(MassTagDatabaseFormat format) : this() { DatabaseFormat = format; }