public bool Compare(string expectedValue, object actualValue) { var expected = FancyNameValueRetriever.Parse(expectedValue); var actual = (FancyName)actualValue; return(expected.FirstName == actual.FirstName && expected.LastName == actual.LastName); }
public object Retrieve(KeyValuePair <string, string> keyValuePair, Type targetType, Type propertyType) { return(FancyNameValueRetriever.Parse(keyValuePair.Value)); }