Created
August 3, 2018 13:21
-
-
Save joebuschmann/700b16a22e2b59c60d944d11498be8e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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