//тест с обычными значениями public void GetNodTest_1() { Euclidean test1 = new Euclidean(); int first = 100; int second = 25; int expected = 25; int result = test1.GetNod(first, second, out _); EuclideanTests.Equals(expected, result); }
//тест с вызовом рекурсии public void GetNodTest_5() { Euclidean test1 = new Euclidean(); int first = 13; int second = 13; int expected = 13; int result = test1.GetNod(first, second, out _); Assert.AreEqual(expected, result); }
//тест с тремя входными public void GetNodTest_7() { Euclidean test1 = new Euclidean(); int first = 130; int second = 374; int third = 258; int expected = 2; int result = test1.GetNod(first, second, third); Assert.AreEqual(expected, result); }
//тест с пятью входными, 1 после первых двух чисел public void GetNodTest_10() { Euclidean test1 = new Euclidean(); int first = 7; int second = 24; int third = 240; int fourth = 138; int fifth = 186; int expected = 1; int result = test1.GetNod(first, second, third, fourth, fifth); Assert.AreEqual(expected, result); }