コード例 #1
0
        public void ReadToEndReturnsSingleElement()
        {
            FastaReader  fastaReader = new FastaReader(new StringReader(">DNA\nATCGGGCTAAT\nATCGGGCTAAT"));
            List <Fasta> fastaList   = fastaReader.ReadToEnd();

            Assert.IsTrue(fastaList.Count == 1);
        }
コード例 #2
0
        public void ReadToEndReturnsTwoElements()
        {
            FastaReader  fastaReader = new FastaReader(new StringReader(">DNA\nATCGGGCTAAT\nATCGGGCTAAT\n\n>Number2\nATCGGGCTAAT\nATCGGGCTAAT"));
            List <Fasta> fastaList   = fastaReader.ReadToEnd();

            Assert.IsTrue(fastaList.Count == 2);
        }
コード例 #3
0
        public void ReadToEndReturnsList()
        {
            FastaReader  fastaReader = new FastaReader(new StringReader(">DNA\nATCGGGCTAAT\nATCGGGCTAAT\n\n>Number2\nATCGGGCTAAT\nATCGGGCTAAT"));
            List <Fasta> fastaList   = fastaReader.ReadToEnd();

            Assert.IsTrue(fastaList != null);
        }