public void LcmTest1(long a, long b, long gcd)
 {
     Assert.Equal(gcd, NumericalAlgorithms.Lcm(a, b));
 }
 public void GcdThrowsExceptionTest(long a, long b)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => NumericalAlgorithms.Gcd(a, b));
 }
 public void PrimeFactorizationTest4()
 {
     var n        = 4;
     var result   = NumericalAlgorithms.PrimeFactorize(n);
     var expected = new (long, int)[] { (2, 2) };
 public void GcdWithZeroTest(long a, long b, long gcd)
 {
     Assert.Equal(gcd, NumericalAlgorithms.Gcd(a, b));
 }