public void AddPairOfValuesDiff <T>(string propertyName, T firstValue, T secondValue) { if (!CompareValuesNullFriendly(firstValue, secondValue)) { _propertiesList.Add(propertyName, new Tuple <string, string>(PrettyPrint.PrintWithNull(firstValue), PrettyPrint.PrintWithNull(secondValue))); } }
public string PrintListOfPropertiesSideBySide() { string retval = ""; foreach (var propertyPair in _propertiesList) { retval += PrettyPrint.PrintTwoNamedStrings(propertyPair.Key, propertyPair.Value.Item1, propertyPair.Value.Item2); } return(retval); }
public void ContactCheckViewFormConformsToEditTest() { CheckResultSet checkResultSet = new CheckResultSet(); app.ContactHelper.PrepareContactWithIndex(CONTACT_INDEX); ContactData contactInfoFromEditForm = app.ContactHelper.GetContactInfoFromEditForm(CONTACT_INDEX); string contactInfoFromViewString = PrettyPrint.CleanSpecialCharacters(app.ContactHelper.GetContactInfoFromViewForm(CONTACT_INDEX)); string contactInfoFromEditFormString = PrettyPrint.CleanSpecialCharacters(contactInfoFromEditForm.ViewFormString); checkResultSet.Add(new CheckResult(contactInfoFromViewString == contactInfoFromEditFormString, $"Expected: \n${contactInfoFromEditFormString} Got: \n${contactInfoFromViewString}\n${app.Driver.Url}\n")); checkResultSet.CheckTestResult(); }