public void LoadWithoutDriftTime(string server, string databaseName) { var analysis = new MultiAlignAnalysis(); analysis.Options.MassTagDatabaseOptions.OnlyLoadTagsWithDriftTime = false; analysis.MetaData.Database = new InputDatabase(MassTagDatabaseFormat.MassTagSystemSql) { DatabaseServer = server, DatabaseName = databaseName }; MassTagDatabaseLoader loader = new MtsMassTagDatabaseLoader(databaseName, server, analysis.Options.MassTagDatabaseOptions); var database = loader.LoadDatabase(); MassTagDatabaseLoader loader2 = new MtsMassTagDatabaseLoader(databaseName, server, analysis.Options.MassTagDatabaseOptions); loader2.Options.OnlyLoadTagsWithDriftTime = true; var database2 = loader.LoadDatabase(); Assert.Greater(database.MassTags.Count, database2.MassTags.Count); }
public void OnlyLoadWithDriftTime(string server, string databaseName) { var analysis = new MultiAlignAnalysis(); analysis.Options.MassTagDatabaseOptions.OnlyLoadTagsWithDriftTime = true; analysis.MetaData.Database = new InputDatabase(MassTagDatabaseFormat.MassTagSystemSql) { DatabaseServer = server, DatabaseName = databaseName }; var loader = new MtsMassTagDatabaseLoader(databaseName, server, analysis.Options.MassTagDatabaseOptions); var database = loader.LoadDatabase(); foreach (var tag in database.MassTags) { Assert.IsTrue(tag.DriftTime > 0); } }