public void TestRemove() { var manaPool = new ManaPool (); manaPool.Add (COLOR.Red, 2); manaPool.Add (COLOR.Green, 2); manaPool.Add (COLOR.Blue, 3); Assert.IsTrue (manaPool.Remove (COLOR.Red, 1)); Assert.IsFalse (manaPool.Remove (COLOR.Red, 2)); Assert.AreEqual (1, manaPool [COLOR.Red]); Assert.IsFalse (manaPool.Remove (COLOR.White, 1)); Assert.IsFalse (manaPool.Remove (COLOR.Blue, 4)); }
public void TestInvalidRemove() { var manaPool = new ManaPool (); manaPool.Remove (COLOR.Black, -1); }