We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fbf0ef commit 0ec523fCopy full SHA for 0ec523f
1 file changed
tests/ImageSharp.Tests/PixelFormats/Rgb96Tests.cs
@@ -297,7 +297,10 @@ public void Rgb96_PixelInformation()
297
Assert.Equal(PixelAlphaRepresentation.None, info.AlphaRepresentation);
298
Assert.Equal(PixelColorType.RGB, info.ColorType);
299
300
- PixelComponentInfo componentInfo = info.ComponentInfo.Value;
+ PixelComponentInfo? maybeComponentInfo = info.ComponentInfo;
301
+ Assert.NotNull(maybeComponentInfo);
302
+ PixelComponentInfo componentInfo = maybeComponentInfo.Value;
303
+
304
Assert.Equal(3, componentInfo.ComponentCount);
305
Assert.Equal(0, componentInfo.Padding);
306
Assert.Equal(32, componentInfo.GetComponentPrecision(0));
0 commit comments