public void ShouldConvertNullUri() { var converter = new ImageUriConverter(); var result = converter.Convert(null, null, null, null); Assert.IsNull(result); }
public void ShouldConvertTimeSpanToString() { var uri = new Uri("http://www.microsoft.com"); var converter = new ImageUriConverter(); var result = converter.Convert(uri, null, null, null) as BitmapImage; Assert.IsNotNull(result); Assert.AreEqual(uri, result.UriSource); }
public void ConvertBackShouldThrow() { var converter = new ImageUriConverter(); converter.ConvertBack(null, null, null, null); }