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:
authorMarek Safar <marek.safar@gmail.com>2020-04-24 02:01:35 +0300
committerGitHub <noreply@github.com>2020-04-24 02:01:35 +0300
commit7263df610e2f9405fd8f49f5973f0e4182b0ad5f (patch)
treedcff6ce9465f9c829b52a1f8bb17da7a9c6b910d /test/Mono.Linker.Tests.Cases.Expectations
parentd60f4eab2982dfef19d71dfcf2d5ab2286950af2 (diff)
Ensure consistent sources formatting (#1138)
* Apply consistent formatting based on .editorconfig ``` dotnet format -f <path> ``` * Add lint step to the CI * Use local tool * Suppress publish logs warning * Fix more style errors * Fixes bad merge * Write something to log dir * Move lint job to global scope So it doesn't get the arcade publish logs/test steps injected. * Split sources and tests reporting * Include also src folder in the run * Exclude cecil sources * Remove duplicate line * Trigger notification * Format more code Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Diffstat (limited to 'test/Mono.Linker.Tests.Cases.Expectations')
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/AddedPseudoAttributeAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseExpectedLinkedBehaviorAttribute.cs8
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseInAssemblyAttribute.cs3
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/CreatedMemberAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/DependencyRecordedAttribute.cs2
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectBodyModifiedAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectExceptionHandlersModifiedAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectLocalsModifiedAttribute.cs3
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedExceptionHandlerSequenceAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedInstructionSequenceAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedLocalsSequenceAttribute.cs10
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/IgnoreTestCaseAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAllTypesAndMembersInAssemblyAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAssemblyAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeAttribute.cs2
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeInAssemblyAttribute.cs14
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeOnFixedBufferTypeAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBackingFieldAttribute.cs8
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseOnTypeInAssemblyAttribute.cs12
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptDelegateCacheFieldAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptEventAddMethodAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptEventRemoveMethodAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptFixedBufferAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs8
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInterfaceAttribute.cs2
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInterfaceOnTypeInAssemblyAttribute.cs12
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberInAssemblyAttribute.cs10
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptReferenceAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptReferencesInAssemblyAttribute.cs8
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceInAssemblyAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptSecurityAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptSymbolsAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptTypeInAssemblyAttribute.cs5
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/LogContainsAttribute.cs18
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/LogDoesNotContainAttribute.cs18
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/RecognizedReflectionAccessPatternAttribute.cs4
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAssemblyAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAttributeInAssembly.cs14
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedInterfaceOnTypeInAssemblyAttribute.cs12
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs10
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedPseudoAttributeAttribute.cs9
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedResourceInAssemblyAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedSymbolsAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedTypeInAssemblyAttribute.cs5
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/SkipPeVerifyAttribute.cs3
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Assertions/UnrecognizedReflectionAccessPatternAttribute.cs4
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/BaseMetadataAttribute.cs5
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/DefineAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/Il8nAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/IncludeBlacklistStepAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/KeepTypeForwarderOnlyAssembliesAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/NotATestCaseAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/ReferenceAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/ReferenceDependencyAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SandboxDependencyAttribute.cs8
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCSharpCompilerToUseAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAfterAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileArgumentAttribute.cs8
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAsLibraryAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAssemblyNameAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileBeforeAttribute.cs8
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileResourceAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerArgumentAttribute.cs8
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerKeepDebugMembersAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerLinkPublicAndFamilyAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerLinkSymbolsAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerResponseFileAttribute.cs8
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerSubstitutionFileAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerUserActionAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/SkipUnresolvedAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Metadata/StripResourcesAttribute.cs6
-rw-r--r--test/Mono.Linker.Tests.Cases.Expectations/Support/DynamicallyAccessedMembersAttribute.cs4
75 files changed, 320 insertions, 191 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/AddedPseudoAttributeAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/AddedPseudoAttributeAttribute.cs
index 93f47e2dd..bed874f0f 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/AddedPseudoAttributeAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/AddedPseudoAttributeAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Delegate | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event, AllowMultiple = true, Inherited = false)]
- public class AddedPseudoAttributeAttribute : BaseExpectedLinkedBehaviorAttribute {
+ public class AddedPseudoAttributeAttribute : BaseExpectedLinkedBehaviorAttribute
+ {
public AddedPseudoAttributeAttribute (uint value)
{
}
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseExpectedLinkedBehaviorAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseExpectedLinkedBehaviorAttribute.cs
index 47f0f3415..b7f7b9f79 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseExpectedLinkedBehaviorAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseExpectedLinkedBehaviorAttribute.cs
@@ -1,11 +1,13 @@
using System;
using System.Diagnostics;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
/// <summary>
/// Base attribute for attributes that mark up the expected behavior of the linker on a member
/// </summary>
- [Conditional("INCLUDE_EXPECTATIONS")]
- public abstract class BaseExpectedLinkedBehaviorAttribute : Attribute {
+ [Conditional ("INCLUDE_EXPECTATIONS")]
+ public abstract class BaseExpectedLinkedBehaviorAttribute : Attribute
+ {
}
} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseInAssemblyAttribute.cs
index df1a80a13..7b442c851 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/BaseInAssemblyAttribute.cs
@@ -1,5 +1,6 @@
namespace Mono.Linker.Tests.Cases.Expectations.Assertions
{
- public abstract class BaseInAssemblyAttribute : BaseExpectedLinkedBehaviorAttribute {
+ public abstract class BaseInAssemblyAttribute : BaseExpectedLinkedBehaviorAttribute
+ {
}
}
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/CreatedMemberAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/CreatedMemberAttribute.cs
index 2b5fb0332..b51bf3e5d 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/CreatedMemberAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/CreatedMemberAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = true, Inherited = false)]
- public sealed class CreatedMemberAttribute : BaseExpectedLinkedBehaviorAttribute {
+ public sealed class CreatedMemberAttribute : BaseExpectedLinkedBehaviorAttribute
+ {
public CreatedMemberAttribute (string name)
{
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/DependencyRecordedAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/DependencyRecordedAttribute.cs
index e1bba7364..46f7cb43e 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/DependencyRecordedAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/DependencyRecordedAttribute.cs
@@ -5,7 +5,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public class DependencyRecordedAttribute : BaseExpectedLinkedBehaviorAttribute
{
- public DependencyRecordedAttribute(string source, string target, string marked = null)
+ public DependencyRecordedAttribute (string source, string target, string marked = null)
{
if (string.IsNullOrEmpty (source))
throw new ArgumentException ("Value cannot be null or empty.", nameof (source));
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectBodyModifiedAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectBodyModifiedAttribute.cs
index 078e1d873..a547d4b6f 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectBodyModifiedAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectBodyModifiedAttribute.cs
@@ -1,7 +1,9 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Method | AttributeTargets.Constructor, Inherited = false, AllowMultiple = false)]
- public class ExpectBodyModifiedAttribute : BaseInAssemblyAttribute {
+ public class ExpectBodyModifiedAttribute : BaseInAssemblyAttribute
+ {
}
} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectExceptionHandlersModifiedAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectExceptionHandlersModifiedAttribute.cs
index 3ad662d85..b8f540f83 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectExceptionHandlersModifiedAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectExceptionHandlersModifiedAttribute.cs
@@ -1,7 +1,9 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Method | AttributeTargets.Constructor, Inherited = false, AllowMultiple = false)]
- public class ExpectExceptionHandlersModifiedAttribute : BaseInAssemblyAttribute {
+ public class ExpectExceptionHandlersModifiedAttribute : BaseInAssemblyAttribute
+ {
}
} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectLocalsModifiedAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectLocalsModifiedAttribute.cs
index f168e5fc2..f281b8924 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectLocalsModifiedAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectLocalsModifiedAttribute.cs
@@ -3,6 +3,7 @@ using System;
namespace Mono.Linker.Tests.Cases.Expectations.Assertions
{
[AttributeUsage (AttributeTargets.Method | AttributeTargets.Constructor, Inherited = false, AllowMultiple = false)]
- public class ExpectLocalsModifiedAttribute : BaseInAssemblyAttribute {
+ public class ExpectLocalsModifiedAttribute : BaseInAssemblyAttribute
+ {
}
} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedExceptionHandlerSequenceAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedExceptionHandlerSequenceAttribute.cs
index e5071b967..a90456dc6 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedExceptionHandlerSequenceAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedExceptionHandlerSequenceAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Method | AttributeTargets.Constructor, Inherited = false, AllowMultiple = false)]
- public class ExpectedExceptionHandlerSequenceAttribute : BaseInAssemblyAttribute {
+ public class ExpectedExceptionHandlerSequenceAttribute : BaseInAssemblyAttribute
+ {
public ExpectedExceptionHandlerSequenceAttribute (string[] types)
{
if (types == null)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedInstructionSequenceAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedInstructionSequenceAttribute.cs
index 57c87ef64..5254351f5 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedInstructionSequenceAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedInstructionSequenceAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Method | AttributeTargets.Constructor, Inherited = false, AllowMultiple = false)]
- public class ExpectedInstructionSequenceAttribute : BaseInAssemblyAttribute {
+ public class ExpectedInstructionSequenceAttribute : BaseInAssemblyAttribute
+ {
public ExpectedInstructionSequenceAttribute (string[] opCodes)
{
if (opCodes == null)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedLocalsSequenceAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedLocalsSequenceAttribute.cs
index 73d220588..6eea5b561 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedLocalsSequenceAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ExpectedLocalsSequenceAttribute.cs
@@ -1,15 +1,17 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Method | AttributeTargets.Constructor, Inherited = false, AllowMultiple = false)]
- public class ExpectedLocalsSequenceAttribute : BaseInAssemblyAttribute {
- public ExpectedLocalsSequenceAttribute (string [] types)
+ public class ExpectedLocalsSequenceAttribute : BaseInAssemblyAttribute
+ {
+ public ExpectedLocalsSequenceAttribute (string[] types)
{
if (types == null)
throw new ArgumentNullException ();
}
- public ExpectedLocalsSequenceAttribute (Type [] types)
+ public ExpectedLocalsSequenceAttribute (Type[] types)
{
if (types == null)
throw new ArgumentNullException ();
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/IgnoreTestCaseAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/IgnoreTestCaseAttribute.cs
index cf6d75094..6595766d0 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/IgnoreTestCaseAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/IgnoreTestCaseAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class)]
- public class IgnoreTestCaseAttribute : Attribute {
+ public class IgnoreTestCaseAttribute : Attribute
+ {
public IgnoreTestCaseAttribute (string reason)
{
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAllTypesAndMembersInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAllTypesAndMembersInAssemblyAttribute.cs
index 66e1380a0..9146b55dd 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAllTypesAndMembersInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAllTypesAndMembersInAssemblyAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
- public class KeptAllTypesAndMembersInAssemblyAttribute : BaseInAssemblyAttribute {
+ public class KeptAllTypesAndMembersInAssemblyAttribute : BaseInAssemblyAttribute
+ {
public KeptAllTypesAndMembersInAssemblyAttribute (string assemblyFileName)
{
if (string.IsNullOrEmpty (assemblyFileName))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAssemblyAttribute.cs
index 5107bdef2..117ae03a1 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAssemblyAttribute.cs
@@ -1,11 +1,13 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
/// <summary>
/// Verifies that an assembly does exist in the output directory
/// </summary>
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
- public class KeptAssemblyAttribute : KeptAttribute {
+ public class KeptAssemblyAttribute : KeptAttribute
+ {
public KeptAssemblyAttribute (string fileName)
{
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttribute.cs
index 837c97152..9c72126ee 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttribute.cs
@@ -1,7 +1,9 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.All, Inherited = false)]
- public class KeptAttribute : BaseExpectedLinkedBehaviorAttribute {
+ public class KeptAttribute : BaseExpectedLinkedBehaviorAttribute
+ {
}
} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeAttribute.cs
index c09982a5a..fcd4c4d2b 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeAttribute.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
namespace Mono.Linker.Tests.Cases.Expectations.Assertions
{
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeInAssemblyAttribute.cs
index 266d8aae7..216eacfe0 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeInAssemblyAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class KeptAttributeInAssemblyAttribute : BaseInAssemblyAttribute {
+ public class KeptAttributeInAssemblyAttribute : BaseInAssemblyAttribute
+ {
/// <summary>
/// Asserts a CustomAttribute was kept on an assembly
/// </summary>
@@ -11,7 +13,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
public KeptAttributeInAssemblyAttribute (string assemblyName, string attributeTypeName)
{
}
-
+
/// <summary>
/// Asserts a CustomAttribute was kept on an assembly
/// </summary>
@@ -20,7 +22,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
public KeptAttributeInAssemblyAttribute (string assemblyName, Type attributeType)
{
}
-
+
/// <summary>
/// Asserts a CustomAttribute was kept on a specific type
/// </summary>
@@ -30,7 +32,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
public KeptAttributeInAssemblyAttribute (string assemblyName, string attributeTypeName, string onType)
{
}
-
+
/// <summary>
/// Asserts a CustomAttribute was kept on a specific type
/// </summary>
@@ -40,7 +42,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
public KeptAttributeInAssemblyAttribute (string assemblyName, Type attributeType, Type onType)
{
}
-
+
/// <summary>
/// Asserts a CustomAttribute was kept on a member in a specific type
/// </summary>
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeOnFixedBufferTypeAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeOnFixedBufferTypeAttribute.cs
index 91145dae1..afc41a82d 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeOnFixedBufferTypeAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptAttributeOnFixedBufferTypeAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Field, Inherited = false, AllowMultiple = true)]
- public class KeptAttributeOnFixedBufferTypeAttribute : KeptAttribute {
+ public class KeptAttributeOnFixedBufferTypeAttribute : KeptAttribute
+ {
public KeptAttributeOnFixedBufferTypeAttribute (string attributeName)
{
if (string.IsNullOrEmpty (attributeName))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBackingFieldAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBackingFieldAttribute.cs
index b21ce0628..14367f71a 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBackingFieldAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBackingFieldAttribute.cs
@@ -1,7 +1,9 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
- [AttributeUsage(AttributeTargets.Property | AttributeTargets.Event, AllowMultiple = false, Inherited = false)]
- public sealed class KeptBackingFieldAttribute : KeptAttribute {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
+ [AttributeUsage (AttributeTargets.Property | AttributeTargets.Event, AllowMultiple = false, Inherited = false)]
+ public sealed class KeptBackingFieldAttribute : KeptAttribute
+ {
}
}
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseOnTypeInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseOnTypeInAssemblyAttribute.cs
index 2d3e74956..ff95aaf56 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseOnTypeInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBaseOnTypeInAssemblyAttribute.cs
@@ -1,15 +1,17 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class KeptBaseOnTypeInAssemblyAttribute : BaseInAssemblyAttribute {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
+ [AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
+ public class KeptBaseOnTypeInAssemblyAttribute : BaseInAssemblyAttribute
+ {
public KeptBaseOnTypeInAssemblyAttribute (string assemblyFileName, Type type, string baseAssemblyFileName, Type baseType)
{
if (type == null)
throw new ArgumentNullException (nameof (type));
if (string.IsNullOrEmpty (assemblyFileName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (assemblyFileName));
-
+
if (string.IsNullOrEmpty (baseAssemblyFileName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (baseAssemblyFileName));
if (baseType == null)
@@ -22,7 +24,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
throw new ArgumentException ("Value cannot be null or empty.", nameof (assemblyFileName));
if (string.IsNullOrEmpty (typeName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (typeName));
-
+
if (string.IsNullOrEmpty (baseAssemblyFileName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (baseAssemblyFileName));
if (string.IsNullOrEmpty (baseTypeName))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptDelegateCacheFieldAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptDelegateCacheFieldAttribute.cs
index 79d7a6f07..7b29dac42 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptDelegateCacheFieldAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptDelegateCacheFieldAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = true)]
- public class KeptDelegateCacheFieldAttribute : KeptAttribute {
+ public class KeptDelegateCacheFieldAttribute : KeptAttribute
+ {
public KeptDelegateCacheFieldAttribute (string uniquePartOfName)
{
if (string.IsNullOrEmpty (uniquePartOfName))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptEventAddMethodAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptEventAddMethodAttribute.cs
index 34e65d4ea..f37e3946e 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptEventAddMethodAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptEventAddMethodAttribute.cs
@@ -1,7 +1,9 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Event, Inherited = false, AllowMultiple = false)]
- public class KeptEventAddMethodAttribute : KeptAttribute {
+ public class KeptEventAddMethodAttribute : KeptAttribute
+ {
}
}
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptEventRemoveMethodAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptEventRemoveMethodAttribute.cs
index d64cf9b38..610519e99 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptEventRemoveMethodAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptEventRemoveMethodAttribute.cs
@@ -1,7 +1,9 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Event, Inherited = false, AllowMultiple = false)]
- public class KeptEventRemoveMethodAttribute : KeptAttribute {
+ public class KeptEventRemoveMethodAttribute : KeptAttribute
+ {
}
}
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptFixedBufferAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptFixedBufferAttribute.cs
index 5b5879699..8b0df770d 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptFixedBufferAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptFixedBufferAttribute.cs
@@ -1,7 +1,9 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
- public class KeptFixedBufferAttribute : KeptAttribute {
+ public class KeptFixedBufferAttribute : KeptAttribute
+ {
}
} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs
index 3fe20f9a7..b2c5647f0 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInitializerData.cs
@@ -1,13 +1,15 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
- public class KeptInitializerData : KeptAttribute {
+ public class KeptInitializerData : KeptAttribute
+ {
public KeptInitializerData ()
{
}
-
+
public KeptInitializerData (int occurrenceIndexInBody)
{
if (occurrenceIndexInBody < 0)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInterfaceAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInterfaceAttribute.cs
index b04223645..66fe2c490 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInterfaceAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInterfaceAttribute.cs
@@ -11,7 +11,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions
if (interfaceType == null)
throw new ArgumentNullException (nameof (interfaceType));
}
-
+
public KeptInterfaceAttribute (Type interfaceType, params object[] typeArguments)
{
if (interfaceType == null)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInterfaceOnTypeInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInterfaceOnTypeInAssemblyAttribute.cs
index bcbf6744a..802189543 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInterfaceOnTypeInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptInterfaceOnTypeInAssemblyAttribute.cs
@@ -1,15 +1,17 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class KeptInterfaceOnTypeInAssemblyAttribute : BaseInAssemblyAttribute {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
+ [AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
+ public class KeptInterfaceOnTypeInAssemblyAttribute : BaseInAssemblyAttribute
+ {
public KeptInterfaceOnTypeInAssemblyAttribute (string assemblyFileName, Type type, string interfaceAssemblyFileName, Type interfaceType)
{
if (type == null)
throw new ArgumentNullException (nameof (type));
if (string.IsNullOrEmpty (assemblyFileName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (assemblyFileName));
-
+
if (string.IsNullOrEmpty (interfaceAssemblyFileName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (interfaceAssemblyFileName));
if (interfaceType == null)
@@ -22,7 +24,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
throw new ArgumentException ("Value cannot be null or empty.", nameof (assemblyFileName));
if (string.IsNullOrEmpty (typeName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (typeName));
-
+
if (string.IsNullOrEmpty (interfaceAssemblyFileName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (interfaceAssemblyFileName));
if (string.IsNullOrEmpty (interfaceTypeName))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberAttribute.cs
index 6c9d1bfdd..4082fe4c8 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = true, Inherited = false)]
- public sealed class KeptMemberAttribute : KeptAttribute {
+ public sealed class KeptMemberAttribute : KeptAttribute
+ {
public KeptMemberAttribute (string name)
{
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberInAssemblyAttribute.cs
index fed2061ea..f291db5fb 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptMemberInAssemblyAttribute.cs
@@ -1,11 +1,13 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
- public class KeptMemberInAssemblyAttribute : BaseInAssemblyAttribute {
+ public class KeptMemberInAssemblyAttribute : BaseInAssemblyAttribute
+ {
- public KeptMemberInAssemblyAttribute (string assemblyFileName, Type type, params string [] memberNames)
+ public KeptMemberInAssemblyAttribute (string assemblyFileName, Type type, params string[] memberNames)
{
if (string.IsNullOrEmpty (assemblyFileName))
throw new ArgumentNullException (nameof (assemblyFileName));
@@ -15,7 +17,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
throw new ArgumentNullException (nameof (memberNames));
}
- public KeptMemberInAssemblyAttribute (string assemblyFileName, string typeName, params string [] memberNames)
+ public KeptMemberInAssemblyAttribute (string assemblyFileName, string typeName, params string[] memberNames)
{
if (string.IsNullOrEmpty (assemblyFileName))
throw new ArgumentNullException (nameof (assemblyFileName));
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptReferenceAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptReferenceAttribute.cs
index 4ca94624a..8e5094004 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptReferenceAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptReferenceAttribute.cs
@@ -1,11 +1,13 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
/// <summary>
/// Verifies that a reference exists in the test case assembly
/// </summary>
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class KeptReferenceAttribute : KeptAttribute {
+ public class KeptReferenceAttribute : KeptAttribute
+ {
public KeptReferenceAttribute (string name)
{
if (string.IsNullOrEmpty (name))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptReferencesInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptReferencesInAssemblyAttribute.cs
index f83a67c3e..644077a13 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptReferencesInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptReferencesInAssemblyAttribute.cs
@@ -1,9 +1,11 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class KeptReferencesInAssemblyAttribute : BaseInAssemblyAttribute {
- public KeptReferencesInAssemblyAttribute (string assemblyFileName, string [] expectedReferenceAssemblyNames)
+ public class KeptReferencesInAssemblyAttribute : BaseInAssemblyAttribute
+ {
+ public KeptReferencesInAssemblyAttribute (string assemblyFileName, string[] expectedReferenceAssemblyNames)
{
if (string.IsNullOrEmpty (assemblyFileName))
throw new ArgumentNullException (nameof (assemblyFileName));
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceAttribute.cs
index 0106dfd1a..4aab1e908 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceAttribute.cs
@@ -1,11 +1,13 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
/// <summary>
/// Verifies that a resource exists in the test case assembly
/// </summary>
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class KeptResourceAttribute : KeptAttribute {
+ public class KeptResourceAttribute : KeptAttribute
+ {
public KeptResourceAttribute (string name)
{
if (string.IsNullOrEmpty (name))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceInAssemblyAttribute.cs
index c17fed964..6bbb9c28f 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptResourceInAssemblyAttribute.cs
@@ -1,11 +1,13 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
/// <summary>
/// Verifies that an embedded resource exists in an assembly
/// </summary>
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class KeptResourceInAssemblyAttribute : BaseInAssemblyAttribute {
+ public class KeptResourceInAssemblyAttribute : BaseInAssemblyAttribute
+ {
public KeptResourceInAssemblyAttribute (string assemblyFileName, string resourceName)
{
if (string.IsNullOrEmpty (assemblyFileName))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptSecurityAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptSecurityAttribute.cs
index e25905630..7c66e8058 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptSecurityAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptSecurityAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Assembly | AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
- public class KeptSecurityAttribute : KeptAttribute {
+ public class KeptSecurityAttribute : KeptAttribute
+ {
public KeptSecurityAttribute (string attributeName)
{
if (string.IsNullOrEmpty (attributeName))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptSymbolsAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptSymbolsAttribute.cs
index 897c0b3fa..619d8f880 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptSymbolsAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptSymbolsAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class KeptSymbolsAttribute : KeptAttribute {
+ public class KeptSymbolsAttribute : KeptAttribute
+ {
public KeptSymbolsAttribute (string assemblyFileName)
{
if (string.IsNullOrEmpty (assemblyFileName))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptTypeInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptTypeInAssemblyAttribute.cs
index b5aee1392..b29c67995 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptTypeInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptTypeInAssemblyAttribute.cs
@@ -2,8 +2,9 @@
namespace Mono.Linker.Tests.Cases.Expectations.Assertions
{
- [AttributeUsage(AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
- public class KeptTypeInAssemblyAttribute : BaseInAssemblyAttribute {
+ [AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
+ public class KeptTypeInAssemblyAttribute : BaseInAssemblyAttribute
+ {
public KeptTypeInAssemblyAttribute (string assemblyFileName, Type type)
{
if (type == null)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/LogContainsAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/LogContainsAttribute.cs
index 56cf87af2..10a436a8e 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/LogContainsAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/LogContainsAttribute.cs
@@ -2,13 +2,13 @@ using System;
namespace Mono.Linker.Tests.Cases.Expectations.Assertions
{
- [AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class LogContainsAttribute : EnableLoggerAttribute
- {
- public LogContainsAttribute (string message, bool regexMatch = false)
- {
- if (string.IsNullOrEmpty (message))
- throw new ArgumentException ("Value cannot be null or empty.", nameof (message));
- }
- }
+ [AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
+ public class LogContainsAttribute : EnableLoggerAttribute
+ {
+ public LogContainsAttribute (string message, bool regexMatch = false)
+ {
+ if (string.IsNullOrEmpty (message))
+ throw new ArgumentException ("Value cannot be null or empty.", nameof (message));
+ }
+ }
} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/LogDoesNotContainAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/LogDoesNotContainAttribute.cs
index 2f5be1881..697623966 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/LogDoesNotContainAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/LogDoesNotContainAttribute.cs
@@ -2,13 +2,13 @@
namespace Mono.Linker.Tests.Cases.Expectations.Assertions
{
- [AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class LogDoesNotContainAttribute : EnableLoggerAttribute
- {
- public LogDoesNotContainAttribute (string message)
- {
- if (string.IsNullOrEmpty (message))
- throw new ArgumentException ("Value cannot be null or empty.", nameof (message));
- }
- }
+ [AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
+ public class LogDoesNotContainAttribute : EnableLoggerAttribute
+ {
+ public LogDoesNotContainAttribute (string message)
+ {
+ if (string.IsNullOrEmpty (message))
+ throw new ArgumentException ("Value cannot be null or empty.", nameof (message));
+ }
+ }
}
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RecognizedReflectionAccessPatternAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RecognizedReflectionAccessPatternAttribute.cs
index 7961eb230..324102836 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RecognizedReflectionAccessPatternAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RecognizedReflectionAccessPatternAttribute.cs
@@ -31,8 +31,8 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions
throw new ArgumentException ("Value cannot be null or empty.", nameof (accessedItemName));
}
- public RecognizedReflectionAccessPatternAttribute (Type reflectionMethodType, string reflectionMethodName, Type [] reflectionMethodParameters,
- Type accessedItemType, string accessedItemName, string [] accessedItemParameters = null)
+ public RecognizedReflectionAccessPatternAttribute (Type reflectionMethodType, string reflectionMethodName, Type[] reflectionMethodParameters,
+ Type accessedItemType, string accessedItemName, string[] accessedItemParameters = null)
{
if (reflectionMethodType == null)
throw new ArgumentException ("Value cannot be null or empty.", nameof (reflectionMethodType));
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAssemblyAttribute.cs
index 60cab2a3f..e5b4e1184 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAssemblyAttribute.cs
@@ -1,11 +1,13 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
/// <summary>
/// Verifies that an assembly does not exist in the output directory
/// </summary>
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
- public class RemovedAssemblyAttribute : BaseExpectedLinkedBehaviorAttribute {
+ public class RemovedAssemblyAttribute : BaseExpectedLinkedBehaviorAttribute
+ {
public RemovedAssemblyAttribute (string fileName)
{
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAttributeInAssembly.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAttributeInAssembly.cs
index b418357ad..3dd079bae 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAttributeInAssembly.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedAttributeInAssembly.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class RemovedAttributeInAssembly : BaseInAssemblyAttribute {
+ public class RemovedAttributeInAssembly : BaseInAssemblyAttribute
+ {
/// <summary>
/// Asserts a CustomAttribute was kept on an assembly
/// </summary>
@@ -11,7 +13,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
public RemovedAttributeInAssembly (string assemblyName, string attributeTypeName)
{
}
-
+
/// <summary>
/// Asserts a CustomAttribute was kept on an assembly
/// </summary>
@@ -20,7 +22,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
public RemovedAttributeInAssembly (string assemblyName, Type attributeType)
{
}
-
+
/// <summary>
/// Asserts a CustomAttribute was kept on a specific type
/// </summary>
@@ -30,7 +32,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
public RemovedAttributeInAssembly (string assemblyName, string attributeTypeName, string onType)
{
}
-
+
/// <summary>
/// Asserts a CustomAttribute was kept on a specific type
/// </summary>
@@ -40,7 +42,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
public RemovedAttributeInAssembly (string assemblyName, Type attributeType, Type onType)
{
}
-
+
/// <summary>
/// Asserts a CustomAttribute was kept on a member in a specific type
/// </summary>
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedInterfaceOnTypeInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedInterfaceOnTypeInAssemblyAttribute.cs
index 169a0cc95..9a7d0a875 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedInterfaceOnTypeInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedInterfaceOnTypeInAssemblyAttribute.cs
@@ -1,15 +1,17 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
- [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class RemovedInterfaceOnTypeInAssemblyAttribute : BaseInAssemblyAttribute {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
+ [AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
+ public class RemovedInterfaceOnTypeInAssemblyAttribute : BaseInAssemblyAttribute
+ {
public RemovedInterfaceOnTypeInAssemblyAttribute (string assemblyFileName, Type type, string interfaceAssemblyFileName, Type interfaceType)
{
if (type == null)
throw new ArgumentNullException (nameof (type));
if (string.IsNullOrEmpty (assemblyFileName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (assemblyFileName));
-
+
if (string.IsNullOrEmpty (interfaceAssemblyFileName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (interfaceAssemblyFileName));
if (interfaceType == null)
@@ -22,7 +24,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
throw new ArgumentException ("Value cannot be null or empty.", nameof (assemblyFileName));
if (string.IsNullOrEmpty (typeName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (typeName));
-
+
if (string.IsNullOrEmpty (interfaceAssemblyFileName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (interfaceAssemblyFileName));
if (string.IsNullOrEmpty (interfaceTypeName))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs
index 36bc435bf..157eb0688 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedMemberInAssemblyAttribute.cs
@@ -1,10 +1,12 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
- public class RemovedMemberInAssemblyAttribute : BaseInAssemblyAttribute {
+ public class RemovedMemberInAssemblyAttribute : BaseInAssemblyAttribute
+ {
- public RemovedMemberInAssemblyAttribute (string assemblyFileName, Type type, params string [] memberNames)
+ public RemovedMemberInAssemblyAttribute (string assemblyFileName, Type type, params string[] memberNames)
{
if (string.IsNullOrEmpty (assemblyFileName))
throw new ArgumentNullException (nameof (assemblyFileName));
@@ -14,7 +16,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
throw new ArgumentNullException (nameof (memberNames));
}
- public RemovedMemberInAssemblyAttribute (string assemblyFileName, string typeName, params string [] memberNames)
+ public RemovedMemberInAssemblyAttribute (string assemblyFileName, string typeName, params string[] memberNames)
{
if (string.IsNullOrEmpty (assemblyFileName))
throw new ArgumentNullException (nameof (assemblyFileName));
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedPseudoAttributeAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedPseudoAttributeAttribute.cs
index 3a95bfa0d..bee980344 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedPseudoAttributeAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedPseudoAttributeAttribute.cs
@@ -1,9 +1,12 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Delegate | AttributeTargets.Interface | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event, AllowMultiple = true, Inherited = false)]
- public class RemovedPseudoAttributeAttribute : BaseExpectedLinkedBehaviorAttribute {
- public RemovedPseudoAttributeAttribute (uint value) {
+ public class RemovedPseudoAttributeAttribute : BaseExpectedLinkedBehaviorAttribute
+ {
+ public RemovedPseudoAttributeAttribute (uint value)
+ {
}
}
} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedResourceInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedResourceInAssemblyAttribute.cs
index e05b7ed80..d1ebe1e4b 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedResourceInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedResourceInAssemblyAttribute.cs
@@ -1,11 +1,13 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
/// <summary>
/// Verifies that an embedded resource was removed from an assembly
/// </summary>
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class RemovedResourceInAssemblyAttribute : BaseInAssemblyAttribute {
+ public class RemovedResourceInAssemblyAttribute : BaseInAssemblyAttribute
+ {
public RemovedResourceInAssemblyAttribute (string assemblyFileName, string resourceName)
{
if (string.IsNullOrEmpty (assemblyFileName))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedSymbolsAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedSymbolsAttribute.cs
index 633617245..9c65aef44 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedSymbolsAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedSymbolsAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
- public class RemovedSymbolsAttribute : BaseExpectedLinkedBehaviorAttribute {
+ public class RemovedSymbolsAttribute : BaseExpectedLinkedBehaviorAttribute
+ {
public RemovedSymbolsAttribute (string assemblyFileName)
{
if (string.IsNullOrEmpty (assemblyFileName))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedTypeInAssemblyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedTypeInAssemblyAttribute.cs
index 253f5bed2..35c43c0cb 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedTypeInAssemblyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/RemovedTypeInAssemblyAttribute.cs
@@ -2,8 +2,9 @@
namespace Mono.Linker.Tests.Cases.Expectations.Assertions
{
- [AttributeUsage(AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
- public class RemovedTypeInAssemblyAttribute : BaseInAssemblyAttribute {
+ [AttributeUsage (AttributeTargets.Class | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
+ public class RemovedTypeInAssemblyAttribute : BaseInAssemblyAttribute
+ {
public RemovedTypeInAssemblyAttribute (string assemblyFileName, Type type)
{
if (type == null)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/SkipPeVerifyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/SkipPeVerifyAttribute.cs
index eaccabd25..37a37e337 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/SkipPeVerifyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/SkipPeVerifyAttribute.cs
@@ -1,6 +1,7 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Assertions {
+namespace Mono.Linker.Tests.Cases.Expectations.Assertions
+{
public enum SkipPeVerifyForToolchian
{
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/UnrecognizedReflectionAccessPatternAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/UnrecognizedReflectionAccessPatternAttribute.cs
index af82912e9..35f157272 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/UnrecognizedReflectionAccessPatternAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/UnrecognizedReflectionAccessPatternAttribute.cs
@@ -9,7 +9,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions
[AttributeUsage (AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public class UnrecognizedReflectionAccessPatternAttribute : BaseExpectedLinkedBehaviorAttribute
{
- public UnrecognizedReflectionAccessPatternAttribute (Type reflectionMethodType, string reflectionMethodName, Type [] reflectionMethodParameters,
+ public UnrecognizedReflectionAccessPatternAttribute (Type reflectionMethodType, string reflectionMethodName, Type[] reflectionMethodParameters,
string message = null)
{
if (reflectionMethodType == null)
@@ -23,7 +23,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Assertions
throw new ArgumentException ("Value cannot be null or empty.", nameof (message));
}
- public UnrecognizedReflectionAccessPatternAttribute (Type reflectionMethodType, string reflectionMethodName, string [] reflectionMethodParameters,
+ public UnrecognizedReflectionAccessPatternAttribute (Type reflectionMethodType, string reflectionMethodName, string[] reflectionMethodParameters,
string message = null)
{
if (reflectionMethodType == null)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/BaseMetadataAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/BaseMetadataAttribute.cs
index d98584eab..ed2ee9c9c 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/BaseMetadataAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/BaseMetadataAttribute.cs
@@ -3,7 +3,8 @@ using System.Diagnostics;
namespace Mono.Linker.Tests.Cases.Expectations.Metadata
{
- [Conditional("INCLUDE_EXPECTATIONS")]
- public abstract class BaseMetadataAttribute : Attribute {
+ [Conditional ("INCLUDE_EXPECTATIONS")]
+ public abstract class BaseMetadataAttribute : Attribute
+ {
}
}
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/DefineAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/DefineAttribute.cs
index 14e95fd4d..903e267ca 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/DefineAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/DefineAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
- public class DefineAttribute : BaseMetadataAttribute {
+ public class DefineAttribute : BaseMetadataAttribute
+ {
public DefineAttribute (string name)
{
if (string.IsNullOrEmpty (name))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/Il8nAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/Il8nAttribute.cs
index e72692411..5ded992ed 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/Il8nAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/Il8nAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class)]
- public sealed class Il8nAttribute : BaseMetadataAttribute {
+ public sealed class Il8nAttribute : BaseMetadataAttribute
+ {
public readonly string Value;
public Il8nAttribute (string value)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/IncludeBlacklistStepAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/IncludeBlacklistStepAttribute.cs
index 4144abcf6..a70567e3b 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/IncludeBlacklistStepAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/IncludeBlacklistStepAttribute.cs
@@ -1,5 +1,7 @@
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
- public sealed class IncludeBlacklistStepAttribute : BaseMetadataAttribute {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
+ public sealed class IncludeBlacklistStepAttribute : BaseMetadataAttribute
+ {
public readonly bool Value;
public IncludeBlacklistStepAttribute (bool value)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/KeepTypeForwarderOnlyAssembliesAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/KeepTypeForwarderOnlyAssembliesAttribute.cs
index ef00ca5f5..22f989148 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/KeepTypeForwarderOnlyAssembliesAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/KeepTypeForwarderOnlyAssembliesAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class)]
- public sealed class KeepTypeForwarderOnlyAssembliesAttribute : BaseMetadataAttribute {
+ public sealed class KeepTypeForwarderOnlyAssembliesAttribute : BaseMetadataAttribute
+ {
public KeepTypeForwarderOnlyAssembliesAttribute (string value)
{
if (string.IsNullOrEmpty (value))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/NotATestCaseAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/NotATestCaseAttribute.cs
index 1fabca331..af9fc07f0 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/NotATestCaseAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/NotATestCaseAttribute.cs
@@ -1,7 +1,9 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Struct)]
- public class NotATestCaseAttribute : BaseMetadataAttribute {
+ public class NotATestCaseAttribute : BaseMetadataAttribute
+ {
}
} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/ReferenceAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/ReferenceAttribute.cs
index 0c6fa852d..6737ee89e 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/ReferenceAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/ReferenceAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
- public class ReferenceAttribute : BaseMetadataAttribute {
+ public class ReferenceAttribute : BaseMetadataAttribute
+ {
public ReferenceAttribute (string value)
{
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/ReferenceDependencyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/ReferenceDependencyAttribute.cs
index 9d536a33e..cada81e68 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/ReferenceDependencyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/ReferenceDependencyAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
- public class ReferenceDependencyAttribute : BaseMetadataAttribute {
+ public class ReferenceDependencyAttribute : BaseMetadataAttribute
+ {
public ReferenceDependencyAttribute (string value)
{
if (string.IsNullOrEmpty (value))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SandboxDependencyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SandboxDependencyAttribute.cs
index b51755dca..eff6ba34b 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SandboxDependencyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SandboxDependencyAttribute.cs
@@ -1,15 +1,17 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
- public class SandboxDependencyAttribute : BaseMetadataAttribute {
+ public class SandboxDependencyAttribute : BaseMetadataAttribute
+ {
public SandboxDependencyAttribute (string relativePathToFile, string destinationFileName = null)
{
if (string.IsNullOrEmpty (relativePathToFile))
throw new ArgumentException ("Value cannot be null or empty.", nameof (relativePathToFile));
}
-
+
public SandboxDependencyAttribute (Type typeOfSourceFileToInclude, string destinationFileName = null)
{
if (typeOfSourceFileToInclude == null)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCSharpCompilerToUseAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCSharpCompilerToUseAttribute.cs
index 0e86a36de..d7e56721d 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCSharpCompilerToUseAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCSharpCompilerToUseAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = false)]
- public class SetupCSharpCompilerToUseAttribute : BaseMetadataAttribute {
+ public class SetupCSharpCompilerToUseAttribute : BaseMetadataAttribute
+ {
public SetupCSharpCompilerToUseAttribute (string name)
{
if (string.IsNullOrEmpty (name))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAfterAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAfterAttribute.cs
index dbaddb631..60a54a1a8 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAfterAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAfterAttribute.cs
@@ -1,11 +1,13 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
/// <summary>
/// Use to compile an assembly after compiling the main test case executabe
/// </summary>
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
- public class SetupCompileAfterAttribute : BaseMetadataAttribute {
+ public class SetupCompileAfterAttribute : BaseMetadataAttribute
+ {
public SetupCompileAfterAttribute (string outputName, string[] sourceFiles, string[] references = null, string[] defines = null, string[] resources = null, string additionalArguments = null, string compilerToUse = null)
{
if (sourceFiles == null)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileArgumentAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileArgumentAttribute.cs
index bec6d93c1..99a65529d 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileArgumentAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileArgumentAttribute.cs
@@ -1,12 +1,14 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
- public class SetupCompileArgumentAttribute : BaseMetadataAttribute {
+ public class SetupCompileArgumentAttribute : BaseMetadataAttribute
+ {
public SetupCompileArgumentAttribute (string value)
{
if (string.IsNullOrEmpty (value))
- throw new ArgumentNullException (nameof(value));
+ throw new ArgumentNullException (nameof (value));
}
}
}
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAsLibraryAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAsLibraryAttribute.cs
index 1ca047cbd..3bb547301 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAsLibraryAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAsLibraryAttribute.cs
@@ -1,7 +1,9 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = false)]
- public class SetupCompileAsLibraryAttribute : BaseMetadataAttribute {
+ public class SetupCompileAsLibraryAttribute : BaseMetadataAttribute
+ {
}
} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAssemblyNameAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAssemblyNameAttribute.cs
index ceb0842eb..91930d562 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAssemblyNameAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileAssemblyNameAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = false)]
- public class SetupCompileAssemblyNameAttribute : BaseMetadataAttribute {
+ public class SetupCompileAssemblyNameAttribute : BaseMetadataAttribute
+ {
public SetupCompileAssemblyNameAttribute (string outputName)
{
if (string.IsNullOrEmpty (outputName))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileBeforeAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileBeforeAttribute.cs
index 6b81b6681..54dd63027 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileBeforeAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileBeforeAttribute.cs
@@ -1,11 +1,13 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
/// <summary>
/// Use to compile an assembly before compiling the main test case executabe
/// </summary>
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
- public class SetupCompileBeforeAttribute : BaseMetadataAttribute {
+ public class SetupCompileBeforeAttribute : BaseMetadataAttribute
+ {
public SetupCompileBeforeAttribute (string outputName, string[] sourceFiles, string[] references = null, string[] defines = null, string[] resources = null, string additionalArguments = null, string compilerToUse = null, bool addAsReference = true)
{
if (sourceFiles == null)
@@ -14,7 +16,7 @@ namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
if (string.IsNullOrEmpty (outputName))
throw new ArgumentException ("Value cannot be null or empty.", nameof (outputName));
}
-
+
public SetupCompileBeforeAttribute (string outputName, Type[] typesToIncludeSourceFor, string[] references = null, string[] defines = null, string[] resources = null, string additionalArguments = null, string compilerToUse = null, bool addAsReference = true)
{
if (typesToIncludeSourceFor == null)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileResourceAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileResourceAttribute.cs
index b86a162c5..fc66f8578 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileResourceAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupCompileResourceAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
- public class SetupCompileResourceAttribute : BaseMetadataAttribute {
+ public class SetupCompileResourceAttribute : BaseMetadataAttribute
+ {
public SetupCompileResourceAttribute (string relativePathToFile, string destinationFileName = null)
{
if (string.IsNullOrEmpty (relativePathToFile))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerArgumentAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerArgumentAttribute.cs
index 802a53fe6..0bd07057a 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerArgumentAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerArgumentAttribute.cs
@@ -1,6 +1,7 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
/// <summary>
/// Used to define arguments to pass to the linker.
@@ -9,8 +10,9 @@ namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
/// and although we need to continue to support the usages that exist today, that doesn't mean we need to make our tests harder to read
/// </summary>
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
- public class SetupLinkerArgumentAttribute : BaseMetadataAttribute {
- public SetupLinkerArgumentAttribute (string flag, params string [] values)
+ public class SetupLinkerArgumentAttribute : BaseMetadataAttribute
+ {
+ public SetupLinkerArgumentAttribute (string flag, params string[] values)
{
if (string.IsNullOrEmpty (flag))
throw new ArgumentNullException (nameof (flag));
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerKeepDebugMembersAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerKeepDebugMembersAttribute.cs
index 9fa23957a..06ab67591 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerKeepDebugMembersAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerKeepDebugMembersAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class)]
- public class SetupLinkerKeepDebugMembersAttribute : BaseMetadataAttribute{
+ public class SetupLinkerKeepDebugMembersAttribute : BaseMetadataAttribute
+ {
public SetupLinkerKeepDebugMembersAttribute (string value)
{
if (string.IsNullOrEmpty (value))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerLinkPublicAndFamilyAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerLinkPublicAndFamilyAttribute.cs
index d3f3d7091..872e6f1ac 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerLinkPublicAndFamilyAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerLinkPublicAndFamilyAttribute.cs
@@ -1,7 +1,9 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = false)]
- public class SetupLinkerLinkPublicAndFamilyAttribute : BaseMetadataAttribute {
+ public class SetupLinkerLinkPublicAndFamilyAttribute : BaseMetadataAttribute
+ {
}
} \ No newline at end of file
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerLinkSymbolsAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerLinkSymbolsAttribute.cs
index 3bcef8610..1ac4d717b 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerLinkSymbolsAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerLinkSymbolsAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class)]
- public class SetupLinkerLinkSymbolsAttribute : BaseMetadataAttribute {
+ public class SetupLinkerLinkSymbolsAttribute : BaseMetadataAttribute
+ {
public SetupLinkerLinkSymbolsAttribute (string value)
{
if (string.IsNullOrEmpty (value))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerResponseFileAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerResponseFileAttribute.cs
index 8ae909446..d52c511ea 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerResponseFileAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerResponseFileAttribute.cs
@@ -1,9 +1,11 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
- public class SetupLinkerResponseFileAttribute : BaseMetadataAttribute {
- public SetupLinkerResponseFileAttribute(string relativePathToFile, string destinationFileName = null)
+ public class SetupLinkerResponseFileAttribute : BaseMetadataAttribute
+ {
+ public SetupLinkerResponseFileAttribute (string relativePathToFile, string destinationFileName = null)
{
if (string.IsNullOrEmpty (relativePathToFile))
throw new ArgumentException ("Value cannot be null or empty.", nameof (relativePathToFile));
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerSubstitutionFileAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerSubstitutionFileAttribute.cs
index 6a52e5021..9ac3c74c8 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerSubstitutionFileAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerSubstitutionFileAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = true)]
- public class SetupLinkerSubstitutionFileAttribute : BaseMetadataAttribute {
+ public class SetupLinkerSubstitutionFileAttribute : BaseMetadataAttribute
+ {
public SetupLinkerSubstitutionFileAttribute (string relativePathToFile, string destinationFileName = null)
{
if (string.IsNullOrEmpty (relativePathToFile))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerUserActionAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerUserActionAttribute.cs
index 6185bbbf5..b20fd9583 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerUserActionAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SetupLinkerUserActionAttribute.cs
@@ -1,8 +1,10 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
[AttributeUsage (AttributeTargets.Class, AllowMultiple = false)]
- public class SetupLinkerUserActionAttribute : BaseMetadataAttribute {
+ public class SetupLinkerUserActionAttribute : BaseMetadataAttribute
+ {
public SetupLinkerUserActionAttribute (string action)
{
if (string.IsNullOrEmpty (action))
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SkipUnresolvedAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SkipUnresolvedAttribute.cs
index bee9a7f4f..a8ea2d8d4 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SkipUnresolvedAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/SkipUnresolvedAttribute.cs
@@ -1,7 +1,9 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
- public sealed class SkipUnresolvedAttribute : BaseMetadataAttribute {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
+ public sealed class SkipUnresolvedAttribute : BaseMetadataAttribute
+ {
public readonly bool Value;
public SkipUnresolvedAttribute (bool value)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/StripResourcesAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/StripResourcesAttribute.cs
index 97a77fb42..691152a07 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Metadata/StripResourcesAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Metadata/StripResourcesAttribute.cs
@@ -1,7 +1,9 @@
using System;
-namespace Mono.Linker.Tests.Cases.Expectations.Metadata {
- public sealed class StripResourcesAttribute : BaseMetadataAttribute {
+namespace Mono.Linker.Tests.Cases.Expectations.Metadata
+{
+ public sealed class StripResourcesAttribute : BaseMetadataAttribute
+ {
public readonly bool Value;
public StripResourcesAttribute (bool value)
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Support/DynamicallyAccessedMembersAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Support/DynamicallyAccessedMembersAttribute.cs
index d99147303..990d893f7 100644
--- a/test/Mono.Linker.Tests.Cases.Expectations/Support/DynamicallyAccessedMembersAttribute.cs
+++ b/test/Mono.Linker.Tests.Cases.Expectations/Support/DynamicallyAccessedMembersAttribute.cs
@@ -22,12 +22,12 @@ namespace System.Runtime.CompilerServices
Events = 0b00011000_00000000,
}
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.Method, AllowMultiple = false)]
+ [AttributeUsage (AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.Method, AllowMultiple = false)]
public class DynamicallyAccessedMembersAttribute : Attribute
{
public DynamicallyAccessedMemberKinds MemberKinds { get; }
- public DynamicallyAccessedMembersAttribute(DynamicallyAccessedMemberKinds memberKinds)
+ public DynamicallyAccessedMembersAttribute (DynamicallyAccessedMemberKinds memberKinds)
{
MemberKinds = memberKinds;
}