public void ShouldCalculateGcdAndQuotients(Polynomial a, Polynomial b, Polynomial expectedGcd, Polynomial[] expectedQuotients) { // When var result = _gcdFinder.GcdWithQuotients(a, b); // Then Assert.Equal(expectedGcd, result.Gcd); Assert.Equal(expectedQuotients, result.Quotients); }
public void ShouldCalculateGcdAndQuotients(GcdExtendedFinderTestCase testCase) { // When var result = _gcdFinder.GcdWithQuotients(testCase.A, testCase.B); // Then Assert.Equal(testCase.Expected, result.Gcd); Assert.Equal(testCase.ExpectedQuotients, result.Quotients); }