public void TransferTo_TooLittle_Exception() { var source = new GemHolder(2, 5); var destination = new GemHolder(0, 0); Assert.Throws(typeof(ArgumentException), () => source.TransferTo(destination, Gem.Blue, 3)); }
public void TransferTo_Enough_Successfull() { var source = new GemHolder(5, 5); var destination = new GemHolder(0, 0); source.TransferTo(destination, Gem.Blue, 3); Assert.AreEqual(3, destination.Gems[Gem.Blue]); }