protected static void ValidateParameters(Uri expectedLocation, Uri actualLocation)
{
if (actualLocation == null)
{
throw new ArgumentNullException("actualLocation");
}
if (actualLocation.IsAbsoluteUri == false)
{
throw new ArgumentException(Resources.Uri_LocationMustBeAbsolute, "actualLocation");
}
if (expectedLocation == null)
{
throw new ArgumentNullException("expectedLocation");
}
if (expectedLocation.IsAbsoluteUri == false)
{
throw new ArgumentException(Resources.Uri_LocationMustBeAbsolute, "expectedLocation");
}
}