public void CloseFarTest() { Exercises closeF = new Exercises(); Assert.AreEqual(true, closeF.CloseFar(1, 2, 12)); Assert.AreEqual(false, closeF.CloseFar(1, 2, 3)); Assert.AreEqual(true, closeF.CloseFar(4, 1, 3)); }
public void CloseFarTest() { Exercises e = new Exercises(); Assert.AreEqual(true, e.CloseFar(1, 2, 10)); Assert.AreEqual(false, e.CloseFar(1, 2, 3)); Assert.AreEqual(true, e.CloseFar(4, 1, 3)); Assert.AreEqual(false, e.CloseFar(4, 5, 3)); Assert.AreEqual(false, e.CloseFar(4, 3, 5)); Assert.AreEqual(true, e.CloseFar(-1, 10, 0)); Assert.AreEqual(true, e.CloseFar(0, -1, 10)); Assert.AreEqual(true, e.CloseFar(10, 10, 8)); Assert.AreEqual(false, e.CloseFar(10, 8, 9)); Assert.AreEqual(false, e.CloseFar(8, 9, 10)); }