Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Voorhees <mrvoorhe@users.noreply.github.com>2021-09-01 18:43:29 +0300
committerGitHub <noreply@github.com>2021-09-01 18:43:29 +0300
commitdf73e68ca3102701be72783811089694c8f60caf (patch)
treedd6b62bbd40c8d8553065a6787887deeb654fd12
parent84341d8506ea2e29d1af479495aff94dcd25014a (diff)
Delete most mcs tests (#2245)
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeArrayOnAttributeCtorOnType.cs33
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnAssembly.cs27
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnAssemblyOtherTypesInAttributeAssemblyUsed.cs30
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnEvent.cs45
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnMethod.cs37
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnProperty.cs36
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnType.cs32
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnAssembly.cs27
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnEvent.cs46
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnMethod.cs38
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnProperty.cs37
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnType.cs33
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnAssembly.cs27
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnEvent.cs46
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnMethod.cs38
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnProperty.cs37
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnType.cs33
-rw-r--r--test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyWithReferenceIsTypeOnAttributeCtorOnType.cs35
-rw-r--r--test/Mono.Linker.Tests.Cases/CoreLink/CanIncludeI18nAssemblies.cs30
-rw-r--r--test/Mono.Linker.Tests.Cases/References/AssemblyOnlyUsedByUsingWithMcs.cs29
20 files changed, 0 insertions, 696 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeArrayOnAttributeCtorOnType.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeArrayOnAttributeCtorOnType.cs
deleted file mode 100644
index a07cc9d5f..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeArrayOnAttributeCtorOnType.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType1.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithType2.dll", new[] { typeof (TypeDefinedInReference2) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType1.dll", typeof (TypeDefinedInReference))]
- [KeptTypeInAssembly ("LibraryWithType2.dll", typeof (TypeDefinedInReference2))]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor(System.Type[])")]
- public class OnlyTypeUsedInAssemblyIsTypeArrayOnAttributeCtorOnType
- {
- public static void Main ()
- {
- var foo = new Foo ();
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (new[] { typeof (TypeDefinedInReference), typeof (TypeDefinedInReference2) })]
- class Foo
- {
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnAssembly.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnAssembly.cs
deleted file mode 100644
index 681365077..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnAssembly.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-[assembly: AttributeDefinedInReference (typeof (TypeDefinedInReference))]
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// In the case of attributes on assemblies, we expect both assemblies to be removed because we don't keep assembly level attributes
- /// when that is the only type marked in the assembly
- /// </summary>
-#if NETCOREAPP
- [IgnoreTestCase ("Don't try to compile with mcs on .NET Core")]
-#endif
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [RemovedAssembly ("LibraryWithType.dll")]
- [RemovedAssembly ("LibraryWithAttribute.dll")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnAssembly
- {
- public static void Main ()
- {
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnAssemblyOtherTypesInAttributeAssemblyUsed.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnAssemblyOtherTypesInAttributeAssemblyUsed.cs
deleted file mode 100644
index c04373888..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnAssemblyOtherTypesInAttributeAssemblyUsed.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-[assembly: KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
-[assembly: AttributeDefinedInReference (typeof (TypeDefinedInReference))]
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor(System.Type)")]
- [KeptTypeInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference_OtherType))]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnAssemblyOtherTypesInAttributeAssemblyUsed
- {
- public static void Main ()
- {
- // Use something in the attribute assembly so that the special behavior of not preserving a reference if the only thing that is marked
- // are attributes is not trigged
- AttributeDefinedInReference_OtherType.Method ();
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnEvent.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnEvent.cs
deleted file mode 100644
index cb34014ae..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnEvent.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System;
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor(System.Type)")]
- [KeptDelegateCacheField ("0")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnEvent
- {
- public static void Main ()
- {
- var foo = new Foo ();
- foo.MyEvent += FooOnMyEvent;
- }
-
- [Kept]
- private static void FooOnMyEvent (object sender, EventArgs e)
- {
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- class Foo
- {
- [Kept]
- [KeptBackingField]
- [KeptEventAddMethod]
- [KeptEventRemoveMethod]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (typeof (TypeDefinedInReference))]
- public event EventHandler MyEvent;
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnMethod.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnMethod.cs
deleted file mode 100644
index b1a4a54ef..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnMethod.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor(System.Type)")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnMethod
- {
- public static void Main ()
- {
- var foo = new Foo ();
- foo.Method ();
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- class Foo
- {
- [Kept]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (typeof (TypeDefinedInReference))]
- public void Method ()
- {
- }
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnProperty.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnProperty.cs
deleted file mode 100644
index 84e498cd1..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnProperty.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor(System.Type)")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnProperty
- {
- public static void Main ()
- {
- var foo = new Foo ();
- foo.Property = 1;
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- class Foo
- {
- [Kept]
- [KeptBackingField]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (typeof (TypeDefinedInReference))]
- public int Property { get; [Kept] set; }
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnType.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnType.cs
deleted file mode 100644
index dbf006b92..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnType.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor(System.Type)")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributeCtorOnType
- {
- public static void Main ()
- {
- var foo = new Foo ();
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (typeof (TypeDefinedInReference))]
- class Foo
- {
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnAssembly.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnAssembly.cs
deleted file mode 100644
index e79418e94..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnAssembly.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-[assembly: AttributeDefinedInReference (FieldType = typeof (TypeDefinedInReference))]
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// In the case of attributes on assemblies, we expect both assemblies to be removed because we don't keep assembly level attributes
- /// when that is the only type marked in the assembly
- /// </summary>
-#if NETCOREAPP
- [IgnoreTestCase ("Don't try to compile with mcs on .NET Core")]
-#endif
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [RemovedAssembly ("LibraryWithType.dll")]
- [RemovedAssembly ("LibraryWithAttribute.dll")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnAssembly
- {
- public static void Main ()
- {
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnEvent.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnEvent.cs
deleted file mode 100644
index 3c60ba4dc..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnEvent.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System;
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), "FieldType")]
- [KeptDelegateCacheField ("0")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnEvent
- {
- public static void Main ()
- {
- var foo = new Foo ();
- foo.MyEvent += FooOnMyEvent;
- }
-
- [Kept]
- private static void FooOnMyEvent (object sender, EventArgs e)
- {
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- class Foo
- {
- [Kept]
- [KeptBackingField]
- [KeptEventAddMethod]
- [KeptEventRemoveMethod]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (FieldType = typeof (TypeDefinedInReference))]
- public event EventHandler MyEvent;
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnMethod.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnMethod.cs
deleted file mode 100644
index df30b6fb8..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnMethod.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), "FieldType")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnMethod
- {
- public static void Main ()
- {
- var foo = new Foo ();
- foo.Method ();
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- class Foo
- {
- [Kept]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (FieldType = typeof (TypeDefinedInReference))]
- public void Method ()
- {
- }
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnProperty.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnProperty.cs
deleted file mode 100644
index 12b1cc59b..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnProperty.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), "FieldType")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnProperty
- {
- public static void Main ()
- {
- var foo = new Foo ();
- foo.Property = 1;
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- class Foo
- {
- [Kept]
- [KeptBackingField]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (FieldType = typeof (TypeDefinedInReference))]
- public int Property { get; [Kept] set; }
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnType.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnType.cs
deleted file mode 100644
index 253ce9027..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnType.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), "FieldType")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributeFieldOnType
- {
- public static void Main ()
- {
- var foo = new Foo ();
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (FieldType = typeof (TypeDefinedInReference))]
- class Foo
- {
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnAssembly.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnAssembly.cs
deleted file mode 100644
index bac66108d..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnAssembly.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-[assembly: AttributeDefinedInReference (PropertyType = typeof (TypeDefinedInReference))]
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// In the case of attributes on assemblies, we expect both assemblies to be removed because we don't keep assembly level attributes
- /// when that is the only type marked in the assembly
- /// </summary>
-#if NETCOREAPP
- [IgnoreTestCase ("Don't try to compile with mcs on .NET Core")]
-#endif
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [RemovedAssembly ("LibraryWithType.dll")]
- [RemovedAssembly ("LibraryWithAttribute.dll")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnAssembly
- {
- public static void Main ()
- {
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnEvent.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnEvent.cs
deleted file mode 100644
index f54f4b0f6..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnEvent.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System;
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), "set_PropertyType(System.Type)")]
- [KeptDelegateCacheField ("0")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnEvent
- {
- public static void Main ()
- {
- var foo = new Foo ();
- foo.MyEvent += FooOnMyEvent;
- }
-
- [Kept]
- private static void FooOnMyEvent (object sender, EventArgs e)
- {
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- class Foo
- {
- [Kept]
- [KeptBackingField]
- [KeptEventAddMethod]
- [KeptEventRemoveMethod]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (PropertyType = typeof (TypeDefinedInReference))]
- public event EventHandler MyEvent;
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnMethod.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnMethod.cs
deleted file mode 100644
index 77b5fc091..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnMethod.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), "set_PropertyType(System.Type)")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnMethod
- {
- public static void Main ()
- {
- var foo = new Foo ();
- foo.Method ();
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- class Foo
- {
- [Kept]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (PropertyType = typeof (TypeDefinedInReference))]
- public void Method ()
- {
- }
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnProperty.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnProperty.cs
deleted file mode 100644
index d204ea428..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnProperty.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), "set_PropertyType(System.Type)")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnProperty
- {
- public static void Main ()
- {
- var foo = new Foo ();
- foo.Property = 1;
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- class Foo
- {
- [Kept]
- [KeptBackingField]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (PropertyType = typeof (TypeDefinedInReference))]
- public int Property { get; [Kept] set; }
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnType.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnType.cs
deleted file mode 100644
index 6965171c6..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnType.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), "set_PropertyType(System.Type)")]
- public class OnlyTypeUsedInAssemblyIsTypeOnAttributePropertyOnType
- {
- public static void Main ()
- {
- var foo = new Foo ();
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (PropertyType = typeof (TypeDefinedInReference))]
- class Foo
- {
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyWithReferenceIsTypeOnAttributeCtorOnType.cs b/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyWithReferenceIsTypeOnAttributeCtorOnType.cs
deleted file mode 100644
index 6be1ce03e..000000000
--- a/test/Mono.Linker.Tests.Cases/Attributes/Mcs/OnlyTypeUsedInAssemblyWithReferenceIsTypeOnAttributeCtorOnType.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using Mono.Linker.Tests.Cases.Attributes.Dependencies;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.Attributes.Mcs
-{
- /// <summary>
- /// This explicit mcs test exists because mcs did not add a reference prior to https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5
- /// </summary>
- [IgnoreTestCase ("Can be enabled once the mcs contains https://github.com/mono/mono/commit/f71b208ca7b41a2a97ca70b955df0c4c411ce8e5")]
- [SetupCSharpCompilerToUse ("mcs")]
- [SetupCompileBefore ("LibraryWithAttribute.dll", new[] { typeof (AttributeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithType.dll", new[] { typeof (TypeDefinedInReference) })]
- [SetupCompileBefore ("LibraryWithTypeAndReference.dll", new[] { typeof (TypeDefinedInReferenceWithReference) }, new[] { "LibraryWithType.dll", "LibraryWithAttribute.dll" }, compilerToUse: "mcs")]
- [KeptTypeInAssembly ("LibraryWithTypeAndReference.dll", typeof (TypeDefinedInReferenceWithReference))]
- [RemovedMemberInAssembly ("LibraryWithTypeAndReference.dll", typeof (TypeDefinedInReferenceWithReference), "Unused()")]
- [KeptTypeInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference))]
- [RemovedMemberInAssembly ("LibraryWithType.dll", typeof (TypeDefinedInReference), "Unused()")]
- [KeptMemberInAssembly ("LibraryWithAttribute.dll", typeof (AttributeDefinedInReference), ".ctor(System.Type)")]
- public class OnlyTypeUsedInAssemblyWithReferenceIsTypeOnAttributeCtorOnType
- {
- public static void Main ()
- {
- var foo = new Foo ();
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- [KeptAttributeAttribute (typeof (AttributeDefinedInReference))]
- [AttributeDefinedInReference (typeof (TypeDefinedInReferenceWithReference))]
- class Foo
- {
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/CoreLink/CanIncludeI18nAssemblies.cs b/test/Mono.Linker.Tests.Cases/CoreLink/CanIncludeI18nAssemblies.cs
deleted file mode 100644
index 1bacd8849..000000000
--- a/test/Mono.Linker.Tests.Cases/CoreLink/CanIncludeI18nAssemblies.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.CoreLink
-{
-#if NETCOREAPP
- [IgnoreTestCase ("Not important for .NET Core build")]
-#endif
- [SetupLinkerTrimMode ("link")]
- [Il8n ("all")]
-
- // i18n assemblies should only be included when processing mono class libs. By forcing this test to use mcs,
- // we can ensure the test will be ignored when the test runs against .net fw assemblies.
- [SetupCSharpCompilerToUse ("mcs")]
-
- [KeptAssembly ("I18N.dll")]
- [KeptAssembly ("I18N.CJK.dll")]
- [KeptAssembly ("I18N.MidEast.dll")]
- [KeptAssembly ("I18N.Other.dll")]
- [KeptAssembly ("I18N.Rare.dll")]
- [KeptAssembly ("I18N.West.dll")]
-
- [SkipPeVerify (SkipPeVerifyForToolchian.Pedump)]
- public class CanIncludeI18nAssemblies
- {
- public static void Main ()
- {
- }
- }
-} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases/References/AssemblyOnlyUsedByUsingWithMcs.cs b/test/Mono.Linker.Tests.Cases/References/AssemblyOnlyUsedByUsingWithMcs.cs
deleted file mode 100644
index bff891ee6..000000000
--- a/test/Mono.Linker.Tests.Cases/References/AssemblyOnlyUsedByUsingWithMcs.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-using Mono.Linker.Tests.Cases.References.Dependencies;
-
-namespace Mono.Linker.Tests.Cases.References
-{
-#if NETCOREAPP
- [IgnoreTestCase ("Don't try to compile with mcs on .NET Core")]
-#endif
- [SetupLinkerAction ("copy", "copied")]
- [SetupCompileBefore ("library.dll", new[] { "Dependencies/AssemblyOnlyUsedByUsing_Lib.cs" })]
-
- // When mcs is used, `copied.dll` will not have a reference to `library.dll`
- [SetupCompileBefore ("copied.dll", new[] { "Dependencies/AssemblyOnlyUsedByUsing_Copied.cs" }, new[] { "library.dll" }, compilerToUse: "mcs")]
-
- // Here to assert that the test is setup correctly to copy the copied assembly. This is an important aspect of the bug
- [KeptMemberInAssembly ("copied.dll", typeof (AssemblyOnlyUsedByUsing_Copied), "Unused()")]
-
- [RemovedAssembly ("library.dll")]
- [KeptReferencesInAssembly ("copied.dll", new[] { "mscorlib" })]
- public class AssemblyOnlyUsedByUsingWithMcs
- {
- public static void Main ()
- {
- // Use something to keep the reference at compile time
- AssemblyOnlyUsedByUsing_Copied.UsedToKeepReference ();
- }
- }
-} \ No newline at end of file