Browse Source

Ignore new attributes in tests

pull/2832/head
Siegfried Pammer 3 years ago
parent
commit
e1abccd5bb
  1. 3
      ICSharpCode.Decompiler.Tests/Helpers/RemoveCompilerAttribute.cs

3
ICSharpCode.Decompiler.Tests/Helpers/RemoveCompilerAttribute.cs

@ -20,7 +20,7 @@ namespace ICSharpCode.Decompiler.Tests.Helpers @@ -20,7 +20,7 @@ namespace ICSharpCode.Decompiler.Tests.Helpers
if (section.Attributes.Count == 0)
section.Remove();
}
if (section.AttributeTarget == "module" && type.Identifier == "UnverifiableCode")
if (section.AttributeTarget == "module" && type.Identifier is "UnverifiableCode" or "RefSafetyRules")
{
attribute.Remove();
if (section.Attributes.Count == 0)
@ -43,6 +43,7 @@ namespace ICSharpCode.Decompiler.Tests.Helpers @@ -43,6 +43,7 @@ namespace ICSharpCode.Decompiler.Tests.Helpers
"System.Runtime.CompilerServices.NullableAttribute",
"System.Runtime.CompilerServices.NullableContextAttribute",
"System.Runtime.CompilerServices.NativeIntegerAttribute",
"System.Runtime.CompilerServices.RefSafetyRulesAttribute",
"Microsoft.CodeAnalysis.EmbeddedAttribute",
};

Loading…
Cancel
Save