Esempio n. 1
0
 public void GetImageDepth_ReturnsCorrectImageDepth()
 {
     Assert.Equal(ImageDepth.Bitonal, AttributeHelpers.GetImageDepth("1"));
     Assert.Equal(ImageDepth.Grayscale, AttributeHelpers.GetImageDepth("8"));
     Assert.Equal(ImageDepth.Color, AttributeHelpers.GetImageDepth("24"));
     Assert.Null(AttributeHelpers.GetImageDepth(""));
     Assert.Null(AttributeHelpers.GetImageDepth(null));
     Assert.Null(AttributeHelpers.GetImageDepth("SOME_RANDOM_STRING"));
 }