Ejemplo n.º 1
0
        private static void ExpectedOffspringCLI(IDictionary <string, ValueObject> args)
        {
            var expected = ExpectedOffspring.calc(
                args ["<AA-AA>"].AsInt,
                args ["<AA-Aa>"].AsInt,
                args ["<AA-aa>"].AsInt,
                args ["<Aa-Aa>"].AsInt,
                args ["<Aa-aa>"].AsInt);

            Console.WriteLine(
                (float)expected.Numerator / (float)expected.Denominator);
        }
Ejemplo n.º 2
0
        public void ExpectedOffspringTest()
        {
            var expected = ExpectedOffspring.calc(1, 0, 0, 1, 0);

            Assert.AreEqual(3.5, (float)expected.Numerator / expected.Denominator);
        }