예제 #1
0
        public void ExtractPhenotypeAndComments_AsExpected(string input, string expectedPhenotype, string commentsEnumString)
        {
            (string phenotype, var comments) = OmimUtilities.ExtractPhenotypeAndComments(input);

            var expectedComments = commentsEnumString.Split(',').Select(x => (OmimItem.Comment) byte.Parse(x)).Where(x => x != OmimItem.Comment.unknown).ToArray();

            Assert.Equal(expectedPhenotype, phenotype);
            Assert.Equal(expectedComments, comments);
        }
예제 #2
0
 public void ExtractPhenotypeAndComments_AsExpected(string input, string phenotype)
 {
     Assert.Equal(phenotype, OmimUtilities.ExtractPhenotypeAndComments(input).Phenotype);
 }