public void TestGetMatchedSequence() { string expect = "DD*DD"; Assert.AreEqual(expect, PeptideUtils.GetMatchedSequence("A.DD*DD.A")); Assert.AreEqual(expect, PeptideUtils.GetMatchedSequence(".DD*DD.A")); Assert.AreEqual(expect, PeptideUtils.GetMatchedSequence("A.DD*DD.")); Assert.AreEqual(expect, PeptideUtils.GetMatchedSequence("DD*DD")); }
public void TestIsModified() { Assert.IsFalse(PeptideUtils.IsModified("DD*DD", 0)); Assert.IsTrue(PeptideUtils.IsModified("DD*DD", 1)); Assert.IsTrue(PeptideUtils.IsModified("DTpDD", 1)); Assert.IsFalse(PeptideUtils.IsModified("DD*DD", 2)); Assert.IsFalse(PeptideUtils.IsModified("DD*DD", 3)); Assert.IsFalse(PeptideUtils.IsModified("DD*DD", 4)); }