コード例 #1
0
        public void ParseTypes_InvalidType_ThrowException(string type)
        {
            string tagAndTypeLines = "#CHROM\tPOS\tREF\tALT\tValue\n" +
                                     $"#type\t.\t.\t.\t{type}";

            using (var caParser = new CustomAnnotationsParser(GetReadStream(tagAndTypeLines), null))
            {
                caParser.ParseTags();
                Assert.Throws <UserErrorException>(() => caParser.ParseTypes());
            }
        }
コード例 #2
0
        public void ParseTypes_ValidType_Pass(string type)
        {
            string tagAndTypeLines = "#CHROM\tPOS\tREF\tALT\tValue\n" +
                                     $"#type\t.\t.\t.\t{type}";

            using (var caParser = new CustomAnnotationsParser(GetReadStream(tagAndTypeLines), null))
            {
                caParser.ParseTags();
                caParser.ParseTypes();
            }
        }