LibHac/tests/LibHac.Tests/CryptoTests/AesIntrinsicsRequiredAttributes.cs
2021-11-14 18:36:53 -07:00

26 lines
558 B
C#

using LibHac.Crypto;
using Xunit;
namespace LibHac.Tests.CryptoTests;
public sealed class AesIntrinsicsRequiredTheoryAttribute : TheoryAttribute
{
public AesIntrinsicsRequiredTheoryAttribute()
{
if (!Aes.IsAesNiSupported())
{
Skip = "AES intrinsics required";
}
}
}
public sealed class AesIntrinsicsRequiredFactAttribute : FactAttribute
{
public AesIntrinsicsRequiredFactAttribute()
{
if (!Aes.IsAesNiSupported())
{
Skip = "AES intrinsics required";
}
}
}