Exemple #1
0
 public void GetImageResolution_ReturnsCorrectImageResolution()
 {
     Assert.Equal(ImageResolution.Low, AttributeHelpers.GetImageResolution("100"));
     Assert.Equal(ImageResolution.MediumLow, AttributeHelpers.GetImageResolution("150"));
     Assert.Equal(ImageResolution.Medium, AttributeHelpers.GetImageResolution("200"));
     Assert.Equal(ImageResolution.MediumHigh, AttributeHelpers.GetImageResolution("240"));
     Assert.Equal(ImageResolution.High, AttributeHelpers.GetImageResolution("300"));
     Assert.Null(AttributeHelpers.GetImageResolution(""));
     Assert.Null(AttributeHelpers.GetImageResolution(null));
     Assert.Null(AttributeHelpers.GetImageResolution("SOME_RANDOM_STRING"));
 }