Example #1
0
        public void GCD_197And199_1()
        {
            var result = Tools.GCD(199, 197);

            Assert.AreEqual(1, result);
        }
Example #2
0
        public void GCD_48And180_12()
        {
            var result = Tools.GCD(48, 180);

            Assert.AreEqual(12, result);
        }
Example #3
0
        public void GCD_OneAnd31_One()
        {
            var result = Tools.GCD(1, 31);

            Assert.AreEqual(1, result);
        }
Example #4
0
        public void GCD_SameNumbers_Input()
        {
            var result = Tools.GCD(4, 4);

            Assert.AreEqual(4, result);
        }
Example #5
0
 public void PrintTreeString()
 {
     Tools.PrintAllNodes(_treeString, 0);
 }
Example #6
0
 public void PrintTreeInt()
 {
     Tools.PrintAllNodes(_treeInt, 0);
 }