Browse Source

Fixed CustomAttributesMultiTest to pass(removed attributes unrelated code in method+shortened attribute name)

pull/728/head
David Karlaš 11 years ago
parent
commit
a2667d93cc
  1. 10
      ICSharpCode.Decompiler/Tests/CustomAttributes/S_CustomAttributes.cs

10
ICSharpCode.Decompiler/Tests/CustomAttributes/S_CustomAttributes.cs

@ -37,14 +37,9 @@ namespace aa @@ -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 @@ -52,8 +47,7 @@ namespace aa
{
}
// Boxing of each array element
[CustomAttributes.MyAttribute(new object[]
{
[My(new object[] {
StringComparison.Ordinal,
StringComparison.CurrentCulture
})]

Loading…
Cancel
Save