public void FindSelectedUnit() { IocContainer.Setup(); var 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); units[1].Selected = true; Assert.Equal(units[1], units.FindSelectedUnit()); }