public void CalculateMaxArrayLength(bool isRawData)
        {
            int max = isRawData ? PixelDataPool <int> .CalculateMaxArrayLength()
                          : PixelDataPool <Color> .CalculateMaxArrayLength();

            Assert.Equal(max < int.MaxValue, !isRawData);
        }
Exemple #2
0
        public void CalculateMaxArrayLength(bool isRawData)
        {
            int max = isRawData ? PixelDataPool <int> .CalculateMaxArrayLength()
                          : PixelDataPool <Rgba32> .CalculateMaxArrayLength();

            Assert.Equal(max > 1024 * 1024, !isRawData);
        }