diff options
author | Mike Voorhees <michaelv@unity3d.com> | 2017-05-31 00:17:50 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-05-31 14:46:04 +0300 |
commit | a52adfbfeac99450ef14b26ad8d649619ba5d84d (patch) | |
tree | 1c08d3572c0222553d3e71a1a42871743110be47 /linker/Tests/Mono.Linker.Tests.Cases.Expectations | |
parent | ec55e57a57a77f0ff8209dcdf9c5a7ee3e73befa (diff) |
Base attribute for InAssembly attrs
Diffstat (limited to 'linker/Tests/Mono.Linker.Tests.Cases.Expectations')
6 files changed, 10 insertions, 5 deletions
diff --git a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseInAssemblyAttribute.cs b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseInAssemblyAttribute.cs new file mode 100644 index 000000000..df1a80a13 --- /dev/null +++ b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseInAssemblyAttribute.cs @@ -0,0 +1,5 @@ +namespace Mono.Linker.Tests.Cases.Expectations.Assertions +{ + public abstract class BaseInAssemblyAttribute : BaseExpectedLinkedBehaviorAttribute { + } +} diff --git a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberInAssemblyAttribute.cs b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberInAssemblyAttribute.cs index 3812acb67..fed2061ea 100644 --- a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberInAssemblyAttribute.cs +++ b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberInAssemblyAttribute.cs @@ -3,7 +3,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions { [AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)] - public class KeptMemberInAssemblyAttribute : BaseExpectedLinkedBehaviorAttribute { + public class KeptMemberInAssemblyAttribute : BaseInAssemblyAttribute { public KeptMemberInAssemblyAttribute (string assemblyFileName, Type type, params string [] memberNames) { diff --git a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptTypeInAssemblyAttribute.cs b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptTypeInAssemblyAttribute.cs index 64b2f9ec9..b5aee1392 100644 --- a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptTypeInAssemblyAttribute.cs +++ b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptTypeInAssemblyAttribute.cs @@ -3,8 +3,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)] - public class KeptTypeInAssemblyAttribute : BaseExpectedLinkedBehaviorAttribute - { + public class KeptTypeInAssemblyAttribute : BaseInAssemblyAttribute { public KeptTypeInAssemblyAttribute (string assemblyFileName, Type type) { if (type == null) diff --git a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs index 078c7ac76..36bc435bf 100644 --- a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs +++ b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs @@ -2,7 +2,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions { [AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)] - public class RemovedMemberInAssemblyAttribute : BaseExpectedLinkedBehaviorAttribute { + public class RemovedMemberInAssemblyAttribute : BaseInAssemblyAttribute { public RemovedMemberInAssemblyAttribute (string assemblyFileName, Type type, params string [] memberNames) { diff --git a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedTypeInAssemblyAttribute.cs b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedTypeInAssemblyAttribute.cs index 506e2cdea..253f5bed2 100644 --- a/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedTypeInAssemblyAttribute.cs +++ b/linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedTypeInAssemblyAttribute.cs @@ -3,7 +3,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)] - public class RemovedTypeInAssemblyAttribute : BaseExpectedLinkedBehaviorAttribute { + public class RemovedTypeInAssemblyAttribute : BaseInAssemblyAttribute { public RemovedTypeInAssemblyAttribute (string assemblyFileName, Type type) { if (type == null) 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 2ae41786a..f4332245f 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 @@ -37,6 +37,7 @@ <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> + <Compile Include="Assertions\BaseInAssemblyAttribute.cs" /> <Compile Include="Assertions\IgnoreTestCaseAttribute.cs" /> <Compile Include="Assertions\KeptAssemblyAttribute.cs" /> <Compile Include="Assertions\KeptAttribute.cs" /> |