Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit de75476

Browse files
committed
Remove assertion not supported before iOS 12
1 parent 467226f commit de75476

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Xamarin.Forms.ControlGallery.iOS/Tests/AssertionExtensions.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ public static byte[] GetPixel(this UIImage bitmap, int x, int y)
4545
{
4646
var cgImage = bitmap.CGImage.WithColorSpace(CGColorSpace.CreateDeviceRGB());
4747

48-
// Check our assumptions; we want to call out that these are wrong so we know that our tests are faulty
49-
System.Diagnostics.Debug.Assert(cgImage.ByteOrderInfo == CGImageByteOrderInfo.ByteOrder32Little);
50-
System.Diagnostics.Debug.Assert(cgImage.AlphaInfo == CGImageAlphaInfo.PremultipliedFirst);
51-
5248
// Grab the raw image data
5349
var nsData = cgImage.DataProvider.CopyData();
5450

0 commit comments

Comments
 (0)