2016-01-12 15:02:26 -08:00
|
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
2016-08-09 11:05:00 -07:00
|
|
|
|
using Microsoft.DotNet.PlatformAbstractions;
|
2016-01-12 15:02:26 -08:00
|
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Tools.Test.Utilities
|
|
|
|
|
{
|
|
|
|
|
public class WindowsOnlyFactAttribute : FactAttribute
|
|
|
|
|
{
|
|
|
|
|
public WindowsOnlyFactAttribute()
|
|
|
|
|
{
|
2016-04-28 16:30:32 -07:00
|
|
|
|
if (RuntimeEnvironment.OperatingSystemPlatform != Platform.Windows)
|
2016-01-12 15:02:26 -08:00
|
|
|
|
{
|
2017-02-15 10:38:41 -08:00
|
|
|
|
this.Skip = "This test requires Windows to run";
|
2016-01-12 15:02:26 -08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-07 10:08:14 -08:00
|
|
|
|
}
|