コード例 #1
0
        public void IsIntersect_NoIntersection_False()
        {
            var needle = new Needle(10, 2, 5, 0);

            var intersectsAbscissa = needle.IntersectsHorizontalLine(-4);

            intersectsAbscissa.Should().BeFalse();
        }
コード例 #2
0
        public void IsIntersect_IntersectsAtMiddle_True()
        {
            var needle = new Needle(10, 2, 5, 0);

            var intersectsAbscissa = needle.IntersectsHorizontalLine(4);

            intersectsAbscissa.Should().BeTrue();
        }