public void Remove_Blab_BySysId() { User newUser = new User(); newUser.ChangeEmail("*****@*****.**"); _harness.Add(newUser); int ogLength = _harness.GetDataSetLength(); _harness.Remove(newUser); int newLength = _harness.GetDataSetLength(); bool correct = false; if (newLength == (ogLength - 1)) { correct = true; } Assert.AreEqual(true, correct); }
//Class for testing the adding of a blab and getting a user by ID public void Remove_Blab_BySysId() { Blab newBlab = new Blab(); newBlab.Message = "Hello, this is Chris blabbing for the first time"; newBlab.UserID = "*****@*****.**"; _harness.Add(newBlab); int ogLength = _harness.GetDataSetLength(); _harness.Remove(newBlab); int newLength = _harness.GetDataSetLength(); bool correct = false; if (newLength == (ogLength - 1)) { correct = true; } Assert.AreEqual(true, correct); }