public void ReadToEndReturnsSingleElement() { FastaReader fastaReader = new FastaReader(new StringReader(">DNA\nATCGGGCTAAT\nATCGGGCTAAT")); List <Fasta> fastaList = fastaReader.ReadToEnd(); Assert.IsTrue(fastaList.Count == 1); }
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); }
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); }