示例#1
0
        public void TestAddCreditSingleItem()
        {
            decimal value = 15.00M;

            accountModel.AddCredit(value);

            Assert.AreEqual(1, accountModel.Credits.Count);
            Assert.AreEqual(value, accountModel.Credits[0].Item1);
            Assert.AreEqual(0, accountModel.Credits[0].Item2);
            Assert.AreEqual(1, events.Count);
            Assert.AreEqual("TotalCredits", events[0]);
        }