public void Number_Of_Northwind_Customers_Test(string city, int expected) { var instance = new Northwind_Code(); var actual = instance.NumberOfNorthwindCustomers(city); Assert.AreEqual(expected, actual); }
[TestCase("Berlin", 1)] // how many in berlin public void TestNumberOfNorthwindCustomers(string city, int expected) { // arrange var instance = new Northwind_Code(); // act var actual = instance.NumberOfNorthwindCustomers(city); // assert Assert.AreEqual(expected, actual); }