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()); } }
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(); } }