Exemple #1
0
        public void GenerateItemList_GivenTwoItems_ShouldReturnItemAtTheIndex0f2()
        {
            //Arrange
            var sut      = new BudgetManager();
            var expected = "Savings";
            //Act
            var actual = sut.GenerateItemList();

            //Assert
            Assert.AreEqual(expected, actual.ElementAt(1).expense);
        }
Exemple #2
0
        public void GenerateItemList_GivenThreeItems_ShouldReturnItemAtTheIndex0f3()
        {
            //Arrange
            var sut      = new BudgetManager();
            var expected = "FoodAndGrocerie";
            //Act
            var actual = sut.GenerateItemList();

            //Assert
            Assert.AreEqual(expected, actual.ElementAt(2).expense);
        }
Exemple #3
0
        public void GenerateItemList_GivenOneItem_ShouldReturnItemAdded()
        {
            //Arrange
            var sut      = new BudgetManager();
            var expected = "EmergencyFund";
            //Act
            var actual = sut.GenerateItemList();

            //Assert
            Assert.AreEqual(expected, actual.First().expense);
        }