public void Tri_ContainsPoint_Should_Work() { var tri = new Plan.Tri(new HashSet <Plan.Point>() { new Plan.Point(0, 0), new Plan.Point(4, 0), new Plan.Point(4, 2), }); bool b0, b1, b2, b3, b4; b0 = tri.ContainsPoint(1, 0.1f); b1 = tri.ContainsPoint(3.5f, 1.5f); b2 = tri.ContainsPoint(1, 1.5f); b3 = tri.ContainsPoint(5, 1); b4 = tri.ContainsPoint(2, -0.1f); b0.Should().BeTrue(); b1.Should().BeTrue(); b2.Should().BeFalse(); b3.Should().BeFalse(); b4.Should().BeFalse(); }