From 10cdfd9fa27dfebc722bf225b72e6441a5901aae Mon Sep 17 00:00:00 2001 From: John Luo Date: Sat, 25 Mar 2017 21:31:49 -0700 Subject: [PATCH] Remove redundant SkipIfCurrentRuntimeIsCoreClrAttribute --- .../SkipIfCurrentRuntimeIsCoreClrAttribute.cs | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/Microsoft.AspNetCore.Server.IntegrationTesting/xunit/SkipIfCurrentRuntimeIsCoreClrAttribute.cs diff --git a/src/Microsoft.AspNetCore.Server.IntegrationTesting/xunit/SkipIfCurrentRuntimeIsCoreClrAttribute.cs b/src/Microsoft.AspNetCore.Server.IntegrationTesting/xunit/SkipIfCurrentRuntimeIsCoreClrAttribute.cs deleted file mode 100644 index 245736ad40..0000000000 --- a/src/Microsoft.AspNetCore.Server.IntegrationTesting/xunit/SkipIfCurrentRuntimeIsCoreClrAttribute.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 System.Diagnostics; -using Microsoft.AspNetCore.Testing.xunit; - -namespace Microsoft.AspNetCore.Server.IntegrationTesting -{ - /// - /// Skips a test if the runtime used to run the test is CoreClr. - /// - [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] - public class SkipIfCurrentRuntimeIsCoreClrAttribute : Attribute, ITestCondition - { - public bool IsMet - { - get - { - return !Process.GetCurrentProcess().ProcessName.ToLower().Contains("coreclr"); - } - } - - public string SkipReason - { - get - { - return "Cannot run these test variations using CoreCLR runtime as helpers are not available on CoreCLR."; - } - } - } -}