Esempio n. 1
0
        public void TestMethod1()
        {
            // arrange
            var sg       = new SegmentNoDivider();
            var expected = new LineSegment(new Vector2(25, 321), new Vector2(322, 657));

            // act
            var actualLine = sg.Subdivide(expected.Point1, expected.Point2).First();

            // assert
            Assert.AreEqual(expected, actualLine);
        }
Esempio n. 2
0
        public VoronoiConverterTest()
        {
            var sg = new SegmentNoDivider();

            _voronoiConverter = new VoronoiConverter(sg);
        }