Ejemplo n.º 1
0
        public void IsIntersect_NoIntersection_False()
        {
            var needle = new Needle(10, 2, 5, 0);

            var intersectsAbscissa = needle.IntersectsHorizontalLine(-4);

            intersectsAbscissa.Should().BeFalse();
        }
Ejemplo n.º 2
0
        public void IsIntersect_IntersectsAtMiddle_True()
        {
            var needle = new Needle(10, 2, 5, 0);

            var intersectsAbscissa = needle.IntersectsHorizontalLine(4);

            intersectsAbscissa.Should().BeTrue();
        }