Пример #1
0
        public void ToDecorators()
        {
            _currencies.Set(_gold, 1f);
            _currencies.Set(_copper, 10f);

            var decs = _currencies.ToDecorators();

            Assert.AreEqual(_gold, decs[0].currency);
            Assert.AreEqual(1f, decs[0].amount);

            Assert.AreEqual(_copper, decs[1].currency);
            Assert.AreEqual(10f, decs[1].amount);
        }