public void CloseToMeTest1()
        {
            var segm = new BorderSegment(1, 1, 2, 2);
            var p    = new Particle2DDummyBase(1)
            {
                X = 1,
                Y = 0.5
            };

            Assert.IsTrue(segm.CloseToMe(p, 0.5));
        }
        public void CloseToMeTest5()
        {
            var segm = new BorderSegment(1, 1, 2, 1);
            var p    = new Particle2DDummyBase(1)
            {
                X = 0.4999,
                Y = 0.5
            };

            Assert.IsFalse(segm.CloseToMe(p, 0.5));
        }
        public void GetNormalToMeTest5()
        {
            var segm = new BorderSegment(1, 1, 2, 2);
            var p    = new Particle2DDummyBase(1)
            {
                X = 0,
                Y = 0
            };

            var res = segm.GetNormalToMe(p);

            Assert.AreEqual(0d, res.X, 0.000001);
            Assert.AreEqual(0d, res.Y, 0.000001);
        }