| File: Attributes\X64FactAttribute.cs | Web Access |
| Project: src\test\Microsoft.ML.TestFrameworkCommon\Microsoft.ML.TestFrameworkCommon.csproj (Microsoft.ML.TestFrameworkCommon) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Reflection; namespace Microsoft.ML.TestFramework.Attributes { /// <summary> /// A fact for tests requiring X64 environment. /// </summary> public sealed class X64FactAttribute : EnvironmentSpecificFactAttribute { public X64FactAttribute(string skipMessage) : base(skipMessage) { } /// <inheritdoc /> protected override bool IsEnvironmentSupported() { return Environment.Is64BitProcess && System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.X64; } } }