예제 #1
0
        public void TestMoveAbilitySimplePasses()
        {
            DeckCreatorInternal deckCreatorInternal = new DeckCreatorInternal();
            IDeck      deck  = Substitute.For <IDeck>();
            GameObject card  = new GameObject();
            GameObject owner = new GameObject();
            int        count = deckCreatorInternal.CreateDeck(deck, "Cards/diamonds", "Cards/clubs", "Cards/hearts", "Cards/spades", "Cards/back", card, owner, false);

            Assert.AreEqual(6, count);
            // Use the Assert class to test conditions
        }
예제 #2
0
 public void CreateDeck(bool needRealObject)
 {
     deckCreatorInternal.CreateDeck(realDeck, DiamondsLocation.Value, ClubsLocation.Value, HeartsLocation.Value,
                                    SpadesLocation.Value,
                                    CardsBackLocation.Value, Card.Value, gameObject, needRealObject);
 }