public void HistoryOSHelper_ConvertIDtoString_InValid_Bogus_Should_Fail() { // Arrange // Act var result = HistoryOSHelper.ConvertIDtoString("bogus"); // Reset // Assert Assert.AreEqual(string.Empty, result); }
public void HistoryOSHelper_ConvertIDtoString_Valid_Should_Pass() { // Arrange var data = new HistoryOSModel { PhoneID = "Name" }; DataSourceBackend.Instance.HistoryOSBackend.Create(data); // Act var result = HistoryOSHelper.ConvertIDtoString(data.ID); // Reset DataSourceBackend.Instance.Reset(); // Assert Assert.AreEqual("Name", result); }