public void As_Bitmap_Throws() { var image = new WPFImage(100, 100); image.Render(3, false, false, 0); Assert.Throws(typeof(DicomImagingException), () => image.As <Bitmap>()); }
public void As_BitmapSource_ReturnsBitmapSource() { var image = new WPFImage(100, 100); image.Render(3, false, false, 0); Assert.IsAssignableFrom <BitmapSource>(image.As <BitmapSource>()); }