Esempio n. 1
0
    public void TestTwoActionsAreNotEqual3()
    {
        Card targetCard = RM.RandomCard();
        Card actionCard = RM.RandomCard();

        Models.Action a1 = new Models.Action(ActionType.BonusCastle, actionCard, targetCard, 0, 0, 0);
        Models.Action a2 = new Models.Action(ActionType.BonusCastle, actionCard, targetCard, 0, 1, 0);

        Assert.IsFalse(a1.IsEqualTo(a2));
    }
Esempio n. 2
0
    public void TestTwoActionsAreEqual1()
    {
        Card targetCard = RM.RandomCard();
        Card actionCard = RM.RandomCard();

        Models.Action a1 = new Models.Action(ActionType.BonusCarperter, actionCard, targetCard, 5, 6, 7);
        Models.Action a2 = new Models.Action(ActionType.BonusCarperter, actionCard, targetCard, 5, 6, 7);

        Assert.IsTrue(a1.IsEqualTo(a2));
    }