illink dropped the exclude feature functionality, so will we.
I believe Unity was the last user of these tests so it's safe to delete them now.
+++ /dev/null
-namespace Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.Dependencies
-{
- public class OnAssembly_Lib1
- {
- public static void UsedSoCompilerDoesntRemoveReference ()
- {
- }
-
- public class FeatureOneClass
- {
- }
- }
-}
+++ /dev/null
-namespace Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.Dependencies
-{
- public class OnAssembly_Lib2
- {
- public static void UsedSoCompilerDoesntRemoveReference ()
- {
- }
-
- public class FeatureTwoClass
- {
- }
- }
-}
+++ /dev/null
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-using Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.Dependencies;
-
-namespace Mono.Linker.Tests.Cases.LinkXml.FeatureExclude
-{
- [TestCaseRequirements (TestRunCharacteristics.TargetingNetFramework, "--exclude-feature is not supported on .NET Core")]
- [SetupLinkerArgument ("--exclude-feature", "one")]
- [SetupCompileBefore ("library1.dll", new[] { typeof (OnAssembly_Lib1) })]
- [SetupCompileBefore ("library2.dll", new[] { typeof (OnAssembly_Lib2) })]
- [RemovedTypeInAssembly ("library1.dll", typeof (OnAssembly_Lib1.FeatureOneClass))]
- [KeptTypeInAssembly ("library2.dll", typeof (OnAssembly_Lib2.FeatureTwoClass))]
- [SetupLinkerDescriptorFile ("OnAssembly.xml")]
- public class OnAssembly
- {
- public static void Main ()
- {
- OnAssembly_Lib1.UsedSoCompilerDoesntRemoveReference ();
- OnAssembly_Lib2.UsedSoCompilerDoesntRemoveReference ();
- }
- }
-}
+++ /dev/null
-<linker>
- <assembly fullname="library1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" feature="one">
- <type fullname="Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.Dependencies.OnAssembly_Lib1/FeatureOneClass"/>
- </assembly>
- <assembly fullname="library2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" feature="two">
- <type fullname="Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.Dependencies.OnAssembly_Lib2/FeatureTwoClass"/>
- </assembly>
-</linker>
+++ /dev/null
-using System;
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.LinkXml.FeatureExclude
-{
- [TestCaseRequirements (TestRunCharacteristics.TargetingNetFramework, "--exclude-feature is not supported on .NET Core")]
- [SetupLinkerArgument ("--exclude-feature", "one")]
- [SetupLinkerDescriptorFile ("OnEvent.xml")]
- public class OnEvent
- {
- public static void Main ()
- {
- }
-
- public event EventHandler<EventArgs> FeatureOne;
-
- [Kept]
- public event EventHandler<EventArgs> FeatureTwo { [Kept] add { } [Kept] remove { } }
- }
-}
+++ /dev/null
-<linker>
- <assembly fullname="test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
- <type fullname="Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.OnEvent">
- <event signature="System.EventHandler`1<System.EventArgs> FeatureOne" feature="one"/>
- </type>
- <type fullname="Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.OnEvent">
- <event signature="System.EventHandler`1<System.EventArgs> FeatureTwo" feature="two"/>
- </type>
- </assembly>
-</linker>
+++ /dev/null
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.LinkXml.FeatureExclude
-{
- [TestCaseRequirements (TestRunCharacteristics.TargetingNetFramework, "--exclude-feature is not supported on .NET Core")]
- [SetupLinkerArgument ("--exclude-feature", "one")]
- [SetupLinkerDescriptorFile ("OnField.xml")]
- public class OnField
- {
- public static void Main ()
- {
- }
-
- private int _featureOne;
-
- [Kept]
- private int _featureTwo;
- }
-}
+++ /dev/null
-<linker>
- <assembly fullname="test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
- <type fullname="Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.OnField">
- <field signature="System.Int32 _featureOne" feature="one"/>
- </type>
- <type fullname="Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.OnField">
- <field signature="System.Int32 _featureTwo" feature="two"/>
- </type>
- </assembly>
-</linker>
+++ /dev/null
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.LinkXml.FeatureExclude
-{
- [TestCaseRequirements (TestRunCharacteristics.TargetingNetFramework, "--exclude-feature is not supported on .NET Core")]
- [SetupLinkerArgument ("--exclude-feature", "one")]
- [SetupLinkerDescriptorFile ("OnMethod.xml")]
- public class OnMethod
- {
- public static void Main ()
- {
- }
-
- public void FeatureOne ()
- {
- }
-
- [Kept]
- public void FeatureTwo ()
- {
- }
- }
-}
+++ /dev/null
-<linker>
- <assembly fullname="test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
- <type fullname="Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.OnMethod">
- <method signature="System.Void FeatureOne()" feature="one"/>
- </type>
- <type fullname="Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.OnMethod">
- <method signature="System.Void FeatureTwo()" feature="two"/>
- </type>
- </assembly>
-</linker>
+++ /dev/null
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.LinkXml.FeatureExclude
-{
- [TestCaseRequirements (TestRunCharacteristics.TargetingNetFramework, "--exclude-feature is not supported on .NET Core")]
- [SetupLinkerArgument ("--exclude-feature", "one")]
- [SetupLinkerDescriptorFile ("OnProperty.xml")]
- public class OnProperty
- {
- public static void Main ()
- {
- new Foo (); // Used to avoid lazy body marking
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- class Foo
- {
- public int FeatureOne { get; set; }
-
- [Kept]
- [KeptBackingField]
- public int FeatureTwo { [Kept] get; [Kept] set; }
- }
- }
-}
+++ /dev/null
-<linker>
- <assembly fullname="test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
- <type fullname="Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.OnProperty/Foo">
- <property signature="System.Int32 FeatureOne" accessors="all" feature="one"/>
- </type>
- <type fullname="Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.OnProperty/Foo">
- <property signature="System.Int32 FeatureTwo" accessors="all" feature="two"/>
- </type>
- </assembly>
-</linker>
+++ /dev/null
-using Mono.Linker.Tests.Cases.Expectations.Assertions;
-using Mono.Linker.Tests.Cases.Expectations.Metadata;
-
-namespace Mono.Linker.Tests.Cases.LinkXml.FeatureExclude
-{
- [TestCaseRequirements (TestRunCharacteristics.TargetingNetFramework, "--exclude-feature is not supported on .NET Core")]
- [SetupLinkerArgument ("--exclude-feature", "one")]
- [SetupLinkerDescriptorFile ("OnType.xml")]
- public class OnType
- {
- public static void Main ()
- {
- }
-
- class FeatureOneClass
- {
- }
-
- [Kept]
- [KeptMember (".ctor()")]
- class FeatureTwoClass
- {
- }
- }
-}
+++ /dev/null
-<linker>
- <assembly fullname="test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
- <type fullname="Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.OnType/FeatureOneClass" feature="one"/>
- <type fullname="Mono.Linker.Tests.Cases.LinkXml.FeatureExclude.OnType/FeatureTwoClass" feature="two"/>
- </assembly>
-</linker>