Beispiel #1
0
 public void GCD_NegativeNumsInput_ExceptionThrow(int n1, int n2)
 {
     Assert.Throws <ArgumentException>(() => BasicAlgoritms.GCDRecursion(n1, n2));
 }
Beispiel #2
0
        public void GCDRecursion_RightValuesTest(int n1, int n2, int expected)
        {
            int result = BasicAlgoritms.GCDRecursion(n1, n2);

            Assert.AreEqual(expected, result);
        }