diff --git a/tests/ImageSharp.Tests/PixelFormats/Rgb96Tests.cs b/tests/ImageSharp.Tests/PixelFormats/Rgb96Tests.cs index 7c6f6bebd7..7e6b8f55f5 100644 --- a/tests/ImageSharp.Tests/PixelFormats/Rgb96Tests.cs +++ b/tests/ImageSharp.Tests/PixelFormats/Rgb96Tests.cs @@ -297,7 +297,10 @@ public class Rgb96Tests Assert.Equal(PixelAlphaRepresentation.None, info.AlphaRepresentation); Assert.Equal(PixelColorType.RGB, info.ColorType); - PixelComponentInfo componentInfo = info.ComponentInfo.Value; + PixelComponentInfo? maybeComponentInfo = info.ComponentInfo; + Assert.NotNull(maybeComponentInfo); + PixelComponentInfo componentInfo = maybeComponentInfo.Value; + Assert.Equal(3, componentInfo.ComponentCount); Assert.Equal(0, componentInfo.Padding); Assert.Equal(32, componentInfo.GetComponentPrecision(0));