Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joebuschmann/700b16a22e2b59c60d944d11498be8e3 to your computer and use it in GitHub Desktop.
Save joebuschmann/700b16a22e2b59c60d944d11498be8e3 to your computer and use it in GitHub Desktop.
public bool CanCompare(object actualValue)
{
return actualValue is GeoLocation;
}
public bool Compare(string expectedValue, object actualValue)
{
GeoLocation expectedLocation;
if (TryGetLocation(expectedValue, out expectedLocation))
return expectedLocation.Equals(actualValue);
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment