From 5825342717cb2f16c819457a2b39bc45f69fe16c Mon Sep 17 00:00:00 2001 From: Hugh Bellamy Date: Mon, 2 Oct 2017 01:28:25 +0100 Subject: [PATCH] Remove invalid tests for image palettes in GdiPlusTest (#5671) C.r. https://github.com/mono/libgdiplus/pull/112 --- .../System.Drawing/Test/System.Drawing/GDIPlusTest.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs b/mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs index 958aa0bb319..4e6c2572529 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs @@ -864,14 +864,6 @@ namespace MonoTests.System.Drawing { Assert.AreEqual (Status.InvalidParameter, GDIPlus.GdipSetImagePalette (IntPtr.Zero, palette), "GdipSetImagePalette(null,palette)"); Assert.AreEqual (Status.InvalidParameter, GDIPlus.GdipSetImagePalette (bitmap, IntPtr.Zero), "GdipSetImagePalette(bitmap,null)"); Assert.AreEqual (Status.Ok, GDIPlus.GdipSetImagePalette (bitmap, palette), "GdipSetImagePalette"); - - // change palette to 0 entries - int flags = Marshal.ReadInt32 (palette); - Marshal.WriteInt64 (palette, flags << 32); - Assert.AreEqual (Status.Ok, GDIPlus.GdipSetImagePalette (bitmap, palette), "GdipSetImagePalette/Empty"); - - Assert.AreEqual (Status.Ok, GDIPlus.GdipGetImagePaletteSize (bitmap, out size), "GdipGetImagePaletteSize/Empty"); - Assert.AreEqual (8, size, "size"); } finally { Marshal.FreeHGlobal (palette); -- 2.25.1