From 7c1e566113d59699af1624186c64eca67f063fc6 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 20 Apr 2020 19:09:33 -0400 Subject: Upgraded Unity --- .../RequireApiProfileAttribute.cs | 32 ---------------------- 1 file changed, 32 deletions(-) delete mode 100644 Library/PackageCache/com.unity.test-framework@1.1.11/UnityEditor.TestRunner/RequireApiProfileAttribute.cs (limited to 'Library/PackageCache/com.unity.test-framework@1.1.11/UnityEditor.TestRunner/RequireApiProfileAttribute.cs') diff --git a/Library/PackageCache/com.unity.test-framework@1.1.11/UnityEditor.TestRunner/RequireApiProfileAttribute.cs b/Library/PackageCache/com.unity.test-framework@1.1.11/UnityEditor.TestRunner/RequireApiProfileAttribute.cs deleted file mode 100644 index 090f218..0000000 --- a/Library/PackageCache/com.unity.test-framework@1.1.11/UnityEditor.TestRunner/RequireApiProfileAttribute.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Linq; -using NUnit.Framework; -using NUnit.Framework.Interfaces; -using NUnit.Framework.Internal; - -namespace UnityEditor.TestTools -{ - [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)] - internal class RequireApiProfileAttribute : NUnitAttribute, IApplyToTest - { - public ApiCompatibilityLevel[] apiProfiles { get; private set; } - - public RequireApiProfileAttribute(params ApiCompatibilityLevel[] apiProfiles) - { - this.apiProfiles = apiProfiles; - } - - void IApplyToTest.ApplyToTest(Test test) - { - test.Properties.Add(PropertyNames.Category, string.Format("ApiProfile({0})", string.Join(", ", apiProfiles.Select(p => p.ToString()).OrderBy(p => p).ToArray()))); - ApiCompatibilityLevel testProfile = PlayerSettings.GetApiCompatibilityLevel(EditorUserBuildSettings.activeBuildTargetGroup); - - if (!apiProfiles.Contains(testProfile)) - { - string skipReason = "Skipping test as it requires a compatible api profile set: " + string.Join(", ", apiProfiles.Select(p => p.ToString()).ToArray()); - test.RunState = RunState.Skipped; - test.Properties.Add(PropertyNames.SkipReason, skipReason); - } - } - } -} -- cgit v1.2.3