public void TestAISearch() { GameController gc = new GameController(true); GameData gd = new GameData("test", 5, 1, new Random()); var count = 0; foreach (var location in gd.CurrentLevel.Locations) { count += location.PartsList.Count; } gc.AISearchTurn(gd, 1); var newCount = 0; foreach (var location in gd.CurrentLevel.Locations) { newCount += location.PartsList.Count; } foreach (var ai in gd.AiPlayers) { Assert.IsNotNull(ai.Bag[0]); Assert.IsNull(ai.Bag[1]); Assert.IsNull(ai.Bag[2]); Assert.IsNull(ai.Bag[3]); Assert.IsNull(ai.Bag[4]); } Assert.AreEqual(count - 5, newCount); }