예제 #1
0
        public void FindClosestGermanUnitOffsetNoGermanUnits()
        {
            IocContainer.Setup();

            UnitList units = new UnitList(new BattleCalculator(new DieRoller()), new TerrainMap(new ShortestPath()));

            units.Add(2, 2, 0, NATIONALITY.USA);
            units.Add(3, 3, 0, NATIONALITY.USA);
            units.Add(4, 4, 0, NATIONALITY.USA);

            int closestUnit = units.FindClosestUnit(1, 1, NATIONALITY.Germany);

            Assert.Equal(-1, closestUnit);
        }