/// /// TODO: Update summary. /// [TestFixture] public class CategoryTests { private Category testCategory; private readonly static int CategoryId = 3; private readonly static string Name = "Sport"; [SetUp] public void SetUp() { this.testCategory = new Category(); } [Test] public void NameDefaultsToEmpty() { Assert.AreEqual(string.Empty, this.testCategory.Name); } [Test] public void CategoryIdDefaultsToZero() { Assert.AreEqual(0, this.testCategory.CategoryId); } [Test] public void NameIsSet() { this.testCategory.Name = Name; Assert.AreEqual(this.testCategory.Name, Name); } [Test] public void CategoryIdIsSet() { this.testCategory.CategoryId = CategoryId; Assert.AreEqual(this.testCategory.CategoryId, CategoryId); } }