diff options
author | Mike Voorhees <michaelv@unity3d.com> | 2017-08-17 20:23:13 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-08-18 12:40:49 +0300 |
commit | a8d0bbe7e6503dd1798a99b785d18aaaaea34d28 (patch) | |
tree | 112ab2068b0b9d52263bea509432ef40185a9a0d /linker/Tests/Mono.Linker.Tests.Cases.Expectations | |
parent | 2ed84d2fe02981a7115a522b7c06587aedcec61c (diff) |
Testing support for adding the KeepTypeForwarderOnlyAssemblies
KeepTypeForwarder arg handling fix.
Diffstat (limited to 'linker/Tests/Mono.Linker.Tests.Cases.Expectations')
2 files changed, 13 insertions, 0 deletions
diff --git a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Metadata/KeepTypeForwarderOnlyAssembliesAttribute.cs b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Metadata/KeepTypeForwarderOnlyAssembliesAttribute.cs new file mode 100644 index 000000000..ef00ca5f5 --- /dev/null +++ b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Metadata/KeepTypeForwarderOnlyAssembliesAttribute.cs @@ -0,0 +1,12 @@ +using System; + +namespace Mono.Linker.Tests.Cases.Expectations.Metadata { + [AttributeUsage (AttributeTargets.Class)] + public sealed class KeepTypeForwarderOnlyAssembliesAttribute : BaseMetadataAttribute { + public KeepTypeForwarderOnlyAssembliesAttribute (string value) + { + if (string.IsNullOrEmpty (value)) + throw new ArgumentException ("Value cannot be null or empty.", nameof (value)); + } + } +} diff --git a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Mono.Linker.Tests.Cases.Expectations.csproj b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Mono.Linker.Tests.Cases.Expectations.csproj index a18529218..fb1b6e3e1 100644 --- a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Mono.Linker.Tests.Cases.Expectations.csproj +++ b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Mono.Linker.Tests.Cases.Expectations.csproj @@ -54,6 +54,7 @@ <Compile Include="Metadata\CoreLinkAttribute.cs" /> <Compile Include="Metadata\IncludeBlacklistStepAttribute.cs" /> <Compile Include="Metadata\Il8nAttribute.cs" /> + <Compile Include="Metadata\KeepTypeForwarderOnlyAssembliesAttribute.cs" /> <Compile Include="Metadata\NotATestCaseAttribute.cs" /> <Compile Include="Metadata\ReferenceAttribute.cs" /> <Compile Include="Metadata\SandboxDependencyAttribute.cs" /> |