Ejemplo n.º 1
0
        public void TestParseModParts()
        {
            var bioMassCalc = new BioMassCalc(MassType.Monoisotopic);

            CollectionAssert.AreEqual(new[] { "C'2", "" }, SequenceMassCalc.ParseModParts(bioMassCalc, "C'2"));
            CollectionAssert.AreEqual(new[] { "", "C2" }, SequenceMassCalc.ParseModParts(bioMassCalc, "-C2"));
            CollectionAssert.AreEqual(new[] { "C'2", "C2" }, SequenceMassCalc.ParseModParts(bioMassCalc, "C'2-C2"));
        }