Beispiel #1
0
 public void GetImageFormat_ReturnsCorrectImageFormat()
 {
     Assert.Equal(ImageFormat.JPEG, AttributeHelpers.GetImageFormat("JPEG"));
     Assert.Equal(ImageFormat.TIFF, AttributeHelpers.GetImageFormat("TIFF"));
     Assert.Equal(ImageFormat.RAW, AttributeHelpers.GetImageFormat("RAW"));
     Assert.Null(AttributeHelpers.GetImageFormat(""));
     Assert.Null(AttributeHelpers.GetImageFormat(null));
     Assert.Null(AttributeHelpers.GetImageFormat("SOME_RANDOM_STRING"));
 }