示例#1
0
        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));
        }
示例#2
0
        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]);
        }