blob: 41bff0e3b6c6e1435b63c4b19fdd6ae20178aa44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using Mono.Cecil;
using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;
namespace Mono.Linker.Tests.TestCasesRunner
{
public static class ExpectationsProvider
{
public static bool IsAssemblyAssertion (CustomAttribute attr)
{
return attr.AttributeType.Name == nameof (KeptAssemblyAttribute) ||
attr.AttributeType.Name == nameof (RemovedAssemblyAttribute) ||
attr.AttributeType.Name == nameof (SetupLinkerActionAttribute) ||
attr.AttributeType.Name == nameof (SetupLinkerTrimModeAttribute);
}
public static bool IsSymbolAssertion (CustomAttribute attr)
{
return attr.AttributeType.Name == nameof (KeptSymbolsAttribute) || attr.AttributeType.Name == nameof (RemovedSymbolsAttribute);
}
}
}
|