public bool TestCompare() { Fraction test1 = new Fraction(1, 1); Fraction test2 = new Fraction(-1, 2); Fraction test3 = new Fraction(2, 1); Fraction test4 = new Fraction(1, 1); if (test1.Compare(test2) == -1 && test1.Compare(test3) == 1 && test1.Compare(test4) == 0) { return true; } else { return false; } }
public bool TestCompare() { Fraction test1 = new Fraction(1, 1); Fraction test2 = new Fraction(-1, 2); Fraction test3 = new Fraction(2, 1); Fraction test4 = new Fraction(1, 1); if (test1.Compare(test2) == -1 && test1.Compare(test3) == 1 && test1.Compare(test4) == 0) { return(true); } else { return(false); } }