From a2667d93cc5e2da9c55b73f41680529cde653fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Karlas=CC=8C?= Date: Sat, 30 May 2015 13:33:57 +0200 Subject: [PATCH] Fixed CustomAttributesMultiTest to pass(removed attributes unrelated code in method+shortened attribute name) --- .../Tests/CustomAttributes/S_CustomAttributes.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ICSharpCode.Decompiler/Tests/CustomAttributes/S_CustomAttributes.cs b/ICSharpCode.Decompiler/Tests/CustomAttributes/S_CustomAttributes.cs index 149d08b7e..4c66c4881 100644 --- a/ICSharpCode.Decompiler/Tests/CustomAttributes/S_CustomAttributes.cs +++ b/ICSharpCode.Decompiler/Tests/CustomAttributes/S_CustomAttributes.cs @@ -37,14 +37,9 @@ namespace aa [Obsolete("some message")] public static void ObsoletedMethod() { - //Console.WriteLine("{0} $$$ {1}", AttributeTargets.Interface, (AttributeTargets)(AttributeTargets.Property | AttributeTargets.Field)); - Console.WriteLine("{0} $$$ {1}", AttributeTargets.Interface, AttributeTargets.Property | AttributeTargets.Field); - AttributeTargets attributeTargets = AttributeTargets.Property | AttributeTargets.Field; - Console.WriteLine("{0} $$$ {1}", AttributeTargets.Interface, attributeTargets); } // No Boxing - [CustomAttributes.MyAttribute(new StringComparison[] - { + [My(new StringComparison[] { StringComparison.Ordinal, StringComparison.CurrentCulture })] @@ -52,8 +47,7 @@ namespace aa { } // Boxing of each array element - [CustomAttributes.MyAttribute(new object[] - { + [My(new object[] { StringComparison.Ordinal, StringComparison.CurrentCulture })]