public void Overlaps_False() { //assign WRange a = new WRange(270, 300); WRange b = new WRange(10, 30); //act bool resultA = a.Overlaps(b); bool resultB = b.Overlaps(a); //assert Assert.IsFalse(resultA); Assert.IsFalse(resultB); }
public void Overlaps_Barely() { //assign WRange a = new WRange(30, 100); WRange b = new WRange(0, 30); //act bool resultA = a.Overlaps(b); bool resultB = b.Overlaps(a); //assert Assert.IsTrue(resultA); Assert.IsTrue(resultB); }
public void Overlaps_Completely() { //assign WRange a = new WRange(-270, 450); WRange b = new WRange(-5, 5); //act bool resultA = a.Overlaps(b); bool resultB = b.Overlaps(a); //assert Assert.IsTrue(resultA); Assert.IsTrue(resultB); }