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); }
public void ExtractPhenotypeAndComments_AsExpected(string input, string phenotype) { Assert.Equal(phenotype, OmimUtilities.ExtractPhenotypeAndComments(input).Phenotype); }