From ca6d958db0f94a73a8629388c3c2ef274bc87cee Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Sat, 11 Mar 2017 17:32:25 +0100 Subject: [PATCH] Remove CAS from System.Drawing unit tests --- .../Test/System.Drawing.Drawing2D/PathGradientBrushTest.cs | 1 - .../Test/System.Drawing.Drawing2D/TestHatchBrush.cs | 1 - .../System.Drawing/Test/System.Drawing.Imaging/GifCodecTest.cs | 1 - .../System.Drawing/Test/System.Drawing.Imaging/IconCodecTest.cs | 1 - .../System.Drawing/Test/System.Drawing.Imaging/MetafileTest.cs | 1 - .../System.Drawing/Test/System.Drawing.Imaging/PngCodecTest.cs | 1 - .../System.Drawing/Test/System.Drawing.Imaging/TestBmpCodec.cs | 1 - .../Test/System.Drawing.Imaging/TestImageAttributes.cs | 1 - .../System.Drawing/Test/System.Drawing.Imaging/TestJpegCodec.cs | 1 - .../System.Drawing/Test/System.Drawing.Imaging/TiffCodecTest.cs | 1 - .../Test/System.Drawing.Text/PrivateFontCollectionTest.cs | 1 - mcs/class/System.Drawing/Test/System.Drawing/ColorConverter.cs | 1 - mcs/class/System.Drawing/Test/System.Drawing/FontFamilyTest.cs | 1 - mcs/class/System.Drawing/Test/System.Drawing/PenTest.cs | 1 - mcs/class/System.Drawing/Test/System.Drawing/TestBitmap.cs | 1 - mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs | 1 - mcs/class/System.Drawing/Test/System.Drawing/TestIcon.cs | 1 - .../System.Drawing/Test/System.Drawing/TestIconConverter.cs | 1 - mcs/class/System.Drawing/Test/System.Drawing/TestImage.cs | 1 - .../System.Drawing/Test/System.Drawing/TestImageConverter.cs | 1 - .../Test/System.Drawing/TestImageFormatConverter.cs | 1 - .../System.Drawing/Test/System.Drawing/TestPointConverter.cs | 1 - mcs/class/System.Drawing/Test/System.Drawing/TestPointF.cs | 1 - .../System.Drawing/Test/System.Drawing/TestRectangleConverter.cs | 1 - .../System.Drawing/Test/System.Drawing/TestSizeConverter.cs | 1 - mcs/class/System.Drawing/Test/System.Drawing/TestSizeF.cs | 1 - .../System.Drawing/Test/System.Drawing/TestSizeFConverter.cs | 1 - mcs/class/System.Drawing/Test/System.Drawing/TestStringFormat.cs | 1 - mcs/class/System.Drawing/Test/System.Drawing/TextureBrushTest.cs | 1 - 29 files changed, 29 deletions(-) diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/PathGradientBrushTest.cs b/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/PathGradientBrushTest.cs index 509fe22d5ef..36eb082c42e 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/PathGradientBrushTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/PathGradientBrushTest.cs @@ -36,7 +36,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing.Drawing2D { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class PathGradientBrushTest { private Point[] pts_2i; diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/TestHatchBrush.cs b/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/TestHatchBrush.cs index 5bbb6216696..b0749fa5733 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/TestHatchBrush.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/TestHatchBrush.cs @@ -38,7 +38,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing.Drawing2D { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class HatchBrushTest { Graphics gr; Bitmap bmp; diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/GifCodecTest.cs b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/GifCodecTest.cs index db88b4efc7f..c2596724512 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/GifCodecTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/GifCodecTest.cs @@ -38,7 +38,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing.Imaging { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class GifCodecTest { /* Get suffix to add to the filename */ diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/IconCodecTest.cs b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/IconCodecTest.cs index d8da270c896..31c83414968 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/IconCodecTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/IconCodecTest.cs @@ -38,7 +38,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing.Imaging { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class IconCodecTest { /* Get suffix to add to the filename */ diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/MetafileTest.cs b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/MetafileTest.cs index c89706d0477..957a93d093e 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/MetafileTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/MetafileTest.cs @@ -38,7 +38,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing.Imaging { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class MetafileTest { public const string Bitmap = "bitmaps/non-inverted.bmp"; diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/PngCodecTest.cs b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/PngCodecTest.cs index c7ee9e4201b..15f0b09c16a 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/PngCodecTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/PngCodecTest.cs @@ -38,7 +38,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing.Imaging { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class PngCodecTest { /* Get suffix to add to the filename */ diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestBmpCodec.cs b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestBmpCodec.cs index 47c8947577b..c39f30d39a7 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestBmpCodec.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestBmpCodec.cs @@ -40,7 +40,6 @@ using System.Text; namespace MonoTests.System.Drawing.Imaging { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class BmpCodecTest { /* Get suffix to add to the filename */ diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestImageAttributes.cs b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestImageAttributes.cs index 75860915c3c..87912ee3106 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestImageAttributes.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestImageAttributes.cs @@ -36,7 +36,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing.Imaging { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class ImageAttributesTest { static ColorMatrix global_color_matrix = new ColorMatrix (new float[][] { diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestJpegCodec.cs b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestJpegCodec.cs index 9644d8eedf5..e20460eb99c 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestJpegCodec.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TestJpegCodec.cs @@ -38,7 +38,6 @@ using System.Security.Permissions; namespace MonoTests.System.Drawing.Imaging { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class JpegCodecTest { /* Get suffix to add to the filename */ diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TiffCodecTest.cs b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TiffCodecTest.cs index e207c0e9cd9..39539a4635b 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TiffCodecTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/TiffCodecTest.cs @@ -38,7 +38,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing.Imaging { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class TiffCodecTest { [TestFixtureSetUp] diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Text/PrivateFontCollectionTest.cs b/mcs/class/System.Drawing/Test/System.Drawing.Text/PrivateFontCollectionTest.cs index c0d13187020..48c601aea22 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing.Text/PrivateFontCollectionTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing.Text/PrivateFontCollectionTest.cs @@ -38,7 +38,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing.Text { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class PrivateFontCollectionTest { [Test] diff --git a/mcs/class/System.Drawing/Test/System.Drawing/ColorConverter.cs b/mcs/class/System.Drawing/Test/System.Drawing/ColorConverter.cs index 4877f496996..b73ed00255c 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/ColorConverter.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/ColorConverter.cs @@ -36,7 +36,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class ColorConverterTest { Color col; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/FontFamilyTest.cs b/mcs/class/System.Drawing/Test/System.Drawing/FontFamilyTest.cs index 69f6a44f4f9..a0c0461424a 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/FontFamilyTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/FontFamilyTest.cs @@ -36,7 +36,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class FontFamilyTest { private Bitmap bitmap; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/PenTest.cs b/mcs/class/System.Drawing/Test/System.Drawing/PenTest.cs index bc050f3daab..7ecac3b5742 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/PenTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/PenTest.cs @@ -36,7 +36,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class PenTest { private Pen default_pen; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestBitmap.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestBitmap.cs index 270037efe43..178bddb250a 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestBitmap.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestBitmap.cs @@ -48,7 +48,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class TestBitmap { [Test] diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs index cb8bd1d1b0f..479736c63f9 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs @@ -40,7 +40,6 @@ using System.Security.Permissions; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class GraphicsTest { private RectangleF[] rects; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestIcon.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestIcon.cs index e4d0fa0758d..5473adbf918 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestIcon.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestIcon.cs @@ -40,7 +40,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class IconTest { Icon icon; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestIconConverter.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestIconConverter.cs index 6fcfadabe48..5337d64b418 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestIconConverter.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestIconConverter.cs @@ -42,7 +42,6 @@ using System.Security.Permissions; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class IconConverterTest { Icon icon; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestImage.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestImage.cs index c53d061bad0..c0289aedd26 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestImage.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestImage.cs @@ -40,7 +40,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing{ [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class ImageTest { private string fname; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestImageConverter.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestImageConverter.cs index 33d4b51d1df..0e41e411a4d 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestImageConverter.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestImageConverter.cs @@ -41,7 +41,6 @@ using System.Security.Permissions; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class ImageConverterTest { Image image; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestImageFormatConverter.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestImageFormatConverter.cs index dcc2539a3c6..33edbb4b854 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestImageFormatConverter.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestImageFormatConverter.cs @@ -39,7 +39,6 @@ using System.Security.Permissions; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class ImageFormatConverterTest { ImageFormat imageFmt; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestPointConverter.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestPointConverter.cs index ad7c2ffe269..a45a24942c3 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestPointConverter.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestPointConverter.cs @@ -41,7 +41,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class PointConverterTest { Point pt; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestPointF.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestPointF.cs index 3d41155cb97..f2f7715f22a 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestPointF.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestPointF.cs @@ -38,7 +38,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class PointFTest { PointF pt11_99; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestRectangleConverter.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestRectangleConverter.cs index f75a06926d1..bc05d224536 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestRectangleConverter.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestRectangleConverter.cs @@ -42,7 +42,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class RectangleConverterTest { Rectangle rect; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestSizeConverter.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestSizeConverter.cs index 8f8a5fa8c4e..d6cc2e11594 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestSizeConverter.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestSizeConverter.cs @@ -42,7 +42,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class SizeConverterTest { Size sz; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestSizeF.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestSizeF.cs index e982e5061ec..5ec35bb564c 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestSizeF.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestSizeF.cs @@ -39,7 +39,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class SizeFTest { SizeF sz11_99; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestSizeFConverter.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestSizeFConverter.cs index 67714cf2640..95b4483f83a 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestSizeFConverter.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestSizeFConverter.cs @@ -43,7 +43,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class SizeFConverterTest { SizeF sz; diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TestStringFormat.cs b/mcs/class/System.Drawing/Test/System.Drawing/TestStringFormat.cs index 6e20da75335..bd11fbd30ac 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TestStringFormat.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TestStringFormat.cs @@ -38,7 +38,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing{ [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class StringFormatTest { private void CheckDefaults (StringFormat sf) diff --git a/mcs/class/System.Drawing/Test/System.Drawing/TextureBrushTest.cs b/mcs/class/System.Drawing/Test/System.Drawing/TextureBrushTest.cs index f5b342291da..de3c24de7b6 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/TextureBrushTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/TextureBrushTest.cs @@ -37,7 +37,6 @@ using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] - [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class TextureBrushTest { private Image image; -- 2.25.1