public void AbilitySuntest3() { AbilityActionSun p = new AbilityActionSun(new Attack(CardSuit.Club, (byte)1)); bool x = p.Equals(null); Assert.IsFalse(x); }
private void randomInputResponse() { UserAction action; int r = random.Next(); switch (r % 10) { case 1: action = new CardAction(randomCard()); break; case 2: if (random.Next() % 2 == 0) { action = new YesOrNoAction(true); } else { action = new YesOrNoAction(false); } break; case 3: action = new AbilityAction(randomCard(), randomPlayer()); break; case 4: action = new AbilityActionSun(randomCard()); break; default: action = new UseCardAction(randomCard(), randomPlayer()); break; } game.processUserInput(game.curPhase.playerID, action); }