LibHac/tests/LibHac.Tests/CryptoTests/AesIntrinsicsRequiredAttributes.cs

27 lines
639 B
C#
Raw Normal View History

2019-11-19 02:31:06 +01:00
using LibHac.Crypto;
2019-11-09 08:32:13 +01:00
using Xunit;
namespace LibHac.Tests.CryptoTests
{
public sealed class AesIntrinsicsRequiredTheoryAttribute : TheoryAttribute
{
public AesIntrinsicsRequiredTheoryAttribute()
{
2019-11-19 02:20:21 +01:00
if (!Aes.IsAesNiSupported())
2019-11-09 08:32:13 +01:00
{
Skip = "AES intrinsics required";
}
}
}
public sealed class AesIntrinsicsRequiredFactAttribute : FactAttribute
{
public AesIntrinsicsRequiredFactAttribute()
{
if (!Aes.IsAesNiSupported())
{
Skip = "AES intrinsics required";
}
}
}
2019-11-09 08:32:13 +01:00
}