Пример #1
0
        public void As_Bitmap_Throws()
        {
            var image = new WPFImage(100, 100);

            image.Render(3, false, false, 0);
            Assert.Throws(typeof(DicomImagingException), () => image.As <Bitmap>());
        }
Пример #2
0
        public void As_BitmapSource_ReturnsBitmapSource()
        {
            var image = new WPFImage(100, 100);

            image.Render(3, false, false, 0);
            Assert.IsAssignableFrom <BitmapSource>(image.As <BitmapSource>());
        }