InstaTax.Tests.OtherIncomesTest.ShouldGetCountIfItemsAreAdded C# (CSharp) Метод

ShouldGetCountIfItemsAreAdded() приватный Метод

private ShouldGetCountIfItemsAreAdded ( ) : void
Результат void
        public void ShouldGetCountIfItemsAreAdded()
        {
            OtherIncomes ois = new OtherIncomes();
            ois.Add(new OtherIncomeItem("Interet", 12000.0));
            ois.Add(new OtherIncomeItem("Rental", 12000.0));
            Assert.AreEqual(2, ois.Count);
        }