public void _1_1_7_Test() { var a = 9; var b = 2; var testable = new _1_1_7(); var(q, r) = testable.Run(a, b); Assert.That(q == a / b && r == a % b); }
public void _1_1_7_AnyInputValues_Success() { var testable = new _1_1_7(); Prop.ForAll( Arb.From <int>().Filter(x => x > 0 && x < Math.Pow(10, 6)), Arb.From <int>().Filter(x => x > 0 && x < Math.Pow(10, 6)), (a, d) => { if (d > a) { d = a; } var(q, r) = testable.Run(a, d); Assert.That(q == a / d && r == a % d); }).QuickCheckThrowOnFailure(); }