public void UpdateTest() { //Arrange cgUserDB = new CGUserDB(); var test = cgUserDB.GetById("Test"); var name = test.UserName; test.UserName = "******"; //Act cgUserDB.Update(test); var test2 = cgUserDB.GetById("Test"); Assert.AreNotEqual(name, test2.UserName); //Cleanup test.UserName = "******"; cgUserDB.Update(test); }