Exemple #1
0
        public void GenotypeccShouldReturnCorrectGenotypes()
        {
            // Arrange
            var           g        = new GenotypeCalculator();
            List <string> expected = new List <string>()
            {
                "cc", "cc", "cc", "cc", "cc", "cc"
            };

            // Act
            var result = g.Calculate(Dominance.Dominant, Dominance.Recessive);

            // Assert
            // result should have only have expected genotypes
            Assert.IsTrue(result.Any(x => expected.Contains(x)));
        }
Exemple #2
0
        public void GenotypeCcShouldReturnCorrectGenotypes()
        {
            // Arrange
            var           g        = new GenotypeCalculator();
            List <string> expected = new List <string>()
            {
                "CC", "Cc", "CC", "cc", "Cc", "cc"
            };

            // Act
            var result = g.Calculate(Dominance.Dominant, Dominance.Recessive);

            // Assert
            // result should have exactly the same sequence as expected
            Assert.IsTrue(result.SequenceEqual(expected));
        }