FactSkipx64CI.cs (970B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="FactSkipx64CI.cs" company="Microsoft Corporation"> 3 // Copyright (c) Microsoft Corporation. Licensed under the MIT License. 4 // </copyright> 5 // ----------------------------------------------------------------------------- 6 7 namespace WinGetUtilInterop.UnitTests.Common 8 { 9 using System; 10 using Xunit; 11 12 /// <summary> 13 /// Skip fact tests if running in CI x64 builds. 14 /// </summary> 15 public class FactSkipx64CI : FactAttribute 16 { 17 /// <summary> 18 /// Initializes a new instance of the <see cref="FactSkipx64CI"/> class. 19 /// </summary> 20 public FactSkipx64CI() 21 { 22 if (Environment.Is64BitProcess && Environment.GetEnvironmentVariable("BUILD_BUILDNUMBER") is not null) 23 { 24 this.Skip = "Skip test for x64 CI builds"; 25 } 26 } 27 } 28 }