Пример #1
0
        public void UpdateEventCalledForAddAmountMethod()
        {
            var called = false;
            var cash   = new Cash(Currencies.USD, 1, 1);

            cash.Updated += (sender, args) =>
            {
                called = true;
            };
            cash.AddAmount(10m);
            Assert.IsTrue(called);
        }