コード例 #1
0
        public void TestGetMissCleavageSiteCount()
        {
            Protease trypsin = new Protease("Trypsin", true, "KR", "P");

            Assert.AreEqual(0, trypsin.GetMissCleavageSiteCount("EGEABDR"));
            Assert.AreEqual(0, trypsin.GetMissCleavageSiteCount("EGEKPABDR"));
            Assert.AreEqual(0, trypsin.GetMissCleavageSiteCount("EGERPABDR"));
            Assert.AreEqual(1, trypsin.GetMissCleavageSiteCount("EGEKABDR"));
            Assert.AreEqual(1, trypsin.GetMissCleavageSiteCount("EGERABDR"));
            Assert.AreEqual(2, trypsin.GetMissCleavageSiteCount("EGEKARBDR"));

            Protease noenzyme = new Protease("Noenzyme", true, "", "");

            Assert.AreEqual(0, noenzyme.GetMissCleavageSiteCount("EGEABDR"));
        }