public void GetAllCategoryNamesTest() { Category cat1 = new Category("C1", "WanderlandItems"); // THIS exists in DB by SQL injection Category cat2 = new Category("C2", "MTG_Cards"); Category cat3 = new Category("C3", "Books"); // THIS exists in DB by SQL injection string[] expected = { cat1.Name, cat2.Name, cat3.Name }; string[] result = handler.GetAllCategorysNames(); Assert.AreEqual(expected.Length, result.Length); for (int i = 0; i < expected.Length; i++) { Assert.AreEqual(expected[i], result[i]); } }