blob: 8b3baf0e3df93d74ba1d5e1583ee205091d714a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
using Mono.Cecil;
using Mono.Linker.Tests.Cases.Expectations.Assertions;
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);
}
public static bool IsSymbolAssertion (CustomAttribute attr)
{
return attr.AttributeType.Name == nameof (KeptSymbolsAttribute) || attr.AttributeType.Name == nameof (RemovedSymbolsAttribute);
}
}
}
|