示例#1
0
        public void CanCheckIfYouCanAffordAnItem()
        {
            var purse = new CoinPurse(4842);
            var item  = new DummyItem();

            item.Value = 3293;
            var expensive = new DummyItem();

            expensive.Value = 49348;

            Assert.True(purse.CanAfford(item));
            Assert.False(purse.CanAfford(expensive));
        }