public void HistoryOS_Update_Valid_Data_Good_Should_Pass() { // Arrange var myData = new HistoryOSModel(); var myDataNew = new HistoryOSModel { PhoneID = "NewPhone", VersionOSID = "NewVersion", // TODO: Add your atttrbutes here ID = myData.ID }; // Act myData.Update(myDataNew); myData.Date = myData.Date.AddSeconds(-5); // Assert Assert.AreEqual("NewPhone", myData.PhoneID); Assert.AreEqual("NewVersion", myData.VersionOSID); // TODO: Add an Assert for each attribute that should change Assert.AreNotEqual(myData.Date, myDataNew.Date); // TODO: Add an Assert for each attribute that thould Not change }
public void HistoryOS_Update_InValid_Data_Null_Should_Fail() { // Arrange var myData = new HistoryOSModel(); // Act var result = myData.Update(null); // Assert Assert.AreEqual(false, result); }