public void Load_IgnoresEmptyLines_Test()
        {
            using (var writer = new RawDataWriter(" "))
            {
                var genome = PrimitiveHelper.Load(writer.FullPath);

                Assert.Empty(genome.Snp);
            }
        }
        public void Load_IgnoresComments_Test()
        {
            using (var writer = new RawDataWriter(
                       "#rs12564807	1	734462	AA",
                       "#rs3131972	X	752721	GG"))
            {
                var genome = PrimitiveHelper.Load(writer.FullPath);

                Assert.Empty(genome.Snp);
            }
        }
        public void Load_CorrectlyLoadsRawData_Test()
        {
            using (var writer = new RawDataWriter(
                       "rs12564807	1	734462	AA",
                       "rs3131972	X	752721	GG",
                       "i4000690	MT	16518	G"))
            {
                var genome = PrimitiveHelper.Load(writer.FullPath);

                Assert.Equal(3, genome.Snp.Count);
                AssertSnp(genome.Snp[0], "rs12564807", Chromosome.One, 734462, "AA");
                AssertSnp(genome.Snp[1], "rs3131972", Chromosome.X, 752721, "GG");
                AssertSnp(genome.Snp[2], "i4000690", Chromosome.Mt, 16518, "G");
            }
        }
 public void ParseChromosome_ReturnsCorrespondingChromosome_Test(Chromosome expected, string s)
 {
     Assert.Equal(expected, PrimitiveHelper.ParseChromosome(s));
 }