public void EditAGenre() { bool result = false; genreList.Clear(); genreList = CDCatalogManager.GetGenres(); foreach (Genre g in genreList) { if (g.GenreName == editedTestGenre.GenreName) { g.GenreName = "Fixed Genre"; result = CDCatalogManager.UpdateGenre(g); } } Assert.IsNotEmpty(genreList); Assert.IsTrue(result); }