コード例 #1
0
        public void TestReadFromFasta()
        {
            FastaFormat     ff   = new FastaFormat();
            List <Sequence> seqs = SequenceUtils.Read(ff, @TestContext.CurrentContext.TestDirectory + "/../../../data//Standard_Protein_FIT_060222.noredundant.fasta");

            Assert.AreEqual(43, seqs.Count);
        }
コード例 #2
0
        public void TestRead()
        {
            List <Sequence> seqs = SequenceUtils.Read(new FastaFormat(), TestContext.CurrentContext.TestDirectory + "/../../../data//test.fasta");

            Assert.AreEqual(2, seqs.Count);
            Assert.AreEqual("test1 description of test1", seqs[0].Reference);
            Assert.AreEqual("AAAAA", seqs[0].SeqString);
            Assert.AreEqual("test2 description of test2", seqs[1].Reference);
            Assert.AreEqual("BBBBB", seqs[1].SeqString);
        }