// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.AspNetCore.Cryptography.Cng; using Microsoft.AspNetCore.Testing.xunit; namespace Microsoft.AspNetCore.DataProtection.Test.Shared { public class ConditionalRunTestOnlyOnWindows8OrLaterAttribute : Attribute, ITestCondition { public bool IsMet => OSVersionUtil.IsWindows8OrLater(); public string SkipReason { get; } = "Test requires Windows 8 / Windows Server 2012 or higher."; } }