public int GreatestCommonDivisor_ShouldCalculate(int first, int second) { return(NumberTheory.GreatestCommonDivisor(first, second)); }
public int GreatestCommonDivisor_ShouldCalculate_GivenNegativeValues(int first, int second) { return(NumberTheory.GreatestCommonDivisor(first, second)); }
public void Having_some_negatives_then_if_it_happens_it_should_be_positive(int numerator, int denomator, int expectedResult) { Assert.AreEqual(expectedResult, NumberTheory.GreatestCommonDivisor(numerator, denomator)); }
public void Common_factor(int numerator, int denomator, int expectedResult) { Assert.AreEqual(expectedResult, NumberTheory.GreatestCommonDivisor(numerator, denomator)); }
public void One_is_the_multiple_of_the_other(int numerator, int denomator, int expectedResult) { Assert.AreEqual(expectedResult, NumberTheory.GreatestCommonDivisor(numerator, denomator)); }
public void Reflexive_a_number_for_itself(int numerator, int denomator, int expectedResult) { Assert.AreEqual(expectedResult, NumberTheory.GreatestCommonDivisor(numerator, denomator)); }
public void GreatestCommonDivisor(int a, int b, int result) { Assert.That(NumberTheory.GreatestCommonDivisor(a, b), Is.EqualTo(result)); }