예제 #1
0
        public void GetAllCategories_NoScenario_ReturnAllCategoryTitles()
        {
            BudgetModel model = new BudgetModel();

            string[] expected = { "FOOD", "CLOTHES", "OTHER" };
            for (int i = 0; i < expected.Length; i++)
            {
                model.AddCategory(expected[i]);
            }

            string[] actual = model.GetAllCategories();
            bool     result = expected.SequenceEqual(actual);

            Assert.IsTrue(result);
        }