public void PickableStartRegions_Select_AreEqual() { var map = UnitTestMap.InitSmall(); var act = map.PickableStartRegions.Select(region => region.Id).ToArray(); var exp = new int[] { 1, 2, 3, 4, 7, 8, 9, 11 }; CollectionAssert.AreEqual(exp, act); }
public void Owner_Region_AreEqual() { var map = UnitTestMap.InitSmall(); var state = new MapState(map.Count); state.Set(1, 2, 13); var act = state.Owner(map[1]); var exp = PlayerType.player2; Assert.AreEqual(exp, act); }
public void Armies_Region_AreEqual() { var map = UnitTestMap.InitSmall(); var state = new MapState(map.Count); state.Set(1, (ushort)PlayerType.player1, 13); var act = state.Armies(map[1]); var exp = 13; Assert.AreEqual(exp, act); }
public void Select_3Items_AreEqual() { var map = UnitTestMap.InitSmall(); var act = map.Select(1, 2, 4).ToList(); var exp = new List <Region>() { map[1], map[2], map[4], }; CollectionAssert.AreEqual(exp, act); }