[Test]//测试改变卡片位置 public void Test_ChangeCardSite() { int[] cardIds = new int[] { 1, 2, 3, 4, 5 }; var model = new PlayerModel(0, 8000); model.InitDeck(cardIds); var lists = TestHelper.GetInstanceField(model, "m_siteCardLists") as List <int>[]; var deckList = lists[SiteType.Deck.GetHashCode()]; var groundList = lists[SiteType.Ground.GetHashCode()]; model.ChangeCardSite(deckList[0], SiteType.Ground); Assert.AreEqual(deckList.Count, 4); Assert.AreEqual(groundList.Count, 1); }