// Stack<Card> deck = new Stack<Card>(); // GameObject card; // Start is called before the first frame update void Awake() { deckCreatorInternal = new DeckCreatorInternal(this); realDeck = deck; //bool isEditor = EditorApplication.isPlaying ? false : true; CreateDeck(true); Shuffle(); }
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 }