Ejemplo n.º 1
0
            public void _1_1_5_Test()
            {
                var b        = 5;
                var a        = 11;
                var testable = new _1_1_5();

                var result = testable.Run(a, b);

                Assert.That(result == a * b);
            }
Ejemplo n.º 2
0
            public void _1_1_5Product_AnyInputValues_Success()
            {
                var testable = new _1_1_5();

                Prop.ForAll <int, int>(
                    Arb.From <int>().Filter(x => x > 0 && x < Math.Pow(10, 6)),
                    Arb.From <int>().Filter(x => x > 0 && x < Math.Pow(10, 3)),
                    (a, b) =>
                {
                    var result = testable.Run(a, b);

                    Assert.That(result == a * b);
                }).QuickCheckThrowOnFailure();
            }