Beispiel #1
0
        public void AddCategoryTest()
        {
            // Arrange
            Category category = new Category("category1");

            catalog.AddCategory(category);

            // Act
            var categories       = catalog.GetCategories();
            var expectedCategory = categories.ElementAt(0);

            // Assert
            Assert.AreEqual(expectedCategory, category);
        }