public void IsIntersect_NoIntersection_False() { var needle = new Needle(10, 2, 5, 0); var intersectsAbscissa = needle.IntersectsHorizontalLine(-4); intersectsAbscissa.Should().BeFalse(); }
public void IsIntersect_IntersectsAtMiddle_True() { var needle = new Needle(10, 2, 5, 0); var intersectsAbscissa = needle.IntersectsHorizontalLine(4); intersectsAbscissa.Should().BeTrue(); }