Convert() public method

Converts a Uri value to a resolution aware Uri value.
public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object The value produced by the binding source.
targetType System.Type The type of the binding target property.
parameter object The converter parameter to use.
culture System The culture to use in the converter.
return object
        public void ConvertFromUriToResolutionAwareUri(int scaleFactor, string expectedValue)
        {
            var converter = new ResolutionAwareUriConverter(scaleFactor);

            var value = converter.Convert(TestValue, typeof(Uri), null, CultureInfo.CurrentCulture);

            Assert.IsNotNull(value);
            Assert.AreEqual(value.ToString(), expectedValue);
        }