Example #1
0
        public void TestReturnsClosestTargetableOfMultipleInsideRadius()
        {
            List <ITangible> targets = new List <ITangible>()
            {
                _t2, _t3, _t4, _t5, _t6, _t7, _t9
            };

            Assert.AreEqual(_t7, TangibleUtilities.GetClosest(_t1, targets));
        }
Example #2
0
        public void TestReturnsClosestTargetableFromListTakingIntoAccountSize()
        {
            List <ITangible> targets = new List <ITangible>()
            {
                _t2, _t3, _t4, _t5
            };

            Assert.AreEqual(_t2, TangibleUtilities.GetClosest(_t1, targets));
        }