public void Test() { Corporate target = new Corporate(); IList <Department> departments = target.GetDepartments(); Assert.AreEqual <int>(2, departments.Count); Assert.AreEqual <string>("market", departments[0].Name); Assert.AreEqual <string>("sales", departments[1].Name); }
public void Test() { var target = new Corporate(); var departments = target.GetDepartments(); Assert.AreEqual(2, departments.Count); Assert.AreEqual("market", departments[0].Name); Assert.AreEqual("sales", departments[1].Name); }