Assert.Throws<OverflowException>(() => new Blend(-1));
}
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotIntMaxValueArrayIndexSupported))]
public void Ctor_LargeCount_ThrowsOutOfMemoryException()
{
Assert.Throws<OutOfMemoryException>(() => new Blend(int.MaxValue));
Assert.Throws<OverflowException>(() => new ColorBlend(-1));
}
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotIntMaxValueArrayIndexSupported))]
public void Ctor_LargeCount_ThrowsOutOfMemoryException()
{
Assert.Throws<OutOfMemoryException>(() => new ColorBlend(int.MaxValue));