Esempio n. 1
0
        public void ShouldConvertNullUri()
        {
            var converter = new ImageUriConverter();

            var result = converter.Convert(null, null, null, null);

            Assert.IsNull(result);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        public void ConvertBackShouldThrow()
        {
            var converter = new ImageUriConverter();

            converter.ConvertBack(null, null, null, null);
        }