private static void CheckMasses(SrmDocument docBefore, SrmDocument docAfter, CompareMasses precursorCompare, CompareMasses fragmentCompare) { // Check transition groups var tranGroupsBefore = docBefore.MoleculeTransitionGroups.ToArray(); var tranGroupsAfter = docAfter.MoleculeTransitionGroups.ToArray(); Assert.AreEqual(tranGroupsBefore.Length, tranGroupsAfter.Length); for (int i = 0; i < tranGroupsBefore.Length; i++) { precursorCompare(tranGroupsBefore[i].PrecursorMz, tranGroupsAfter[i].PrecursorMz); // 60? } // Check transitions var transBefore = docBefore.MoleculeTransitions.ToArray(); var transAfter = docAfter.MoleculeTransitions.ToArray(); // Assert.AreEqual(transBefore.Length, transAfter.Length); for (int i = 0; i < transBefore.Length; i++) { fragmentCompare(transBefore[i].Mz, transAfter[i].Mz); } }
private static void CheckMasses(SrmDocument docBefore, SrmDocument docAfter, CompareMasses precursorCompare, CompareMasses fragmentCompare) { // Check transition groups var tranGroupsBefore = docBefore.MoleculeTransitionGroups.ToArray(); var tranGroupsAfter = docAfter.MoleculeTransitionGroups.ToArray(); Assert.AreEqual(tranGroupsBefore.Length, tranGroupsAfter.Length); for (int i = 0; i < tranGroupsBefore.Length; i++) precursorCompare(tranGroupsBefore[i].PrecursorMz, tranGroupsAfter[i].PrecursorMz); // 60? // Check transitions var transBefore = docBefore.MoleculeTransitions.ToArray(); var transAfter = docAfter.MoleculeTransitions.ToArray(); Assert.AreEqual(transBefore.Length, transAfter.Length); for (int i = 0; i < transBefore.Length; i++) fragmentCompare(transBefore[i].Mz, transAfter[i].Mz); }