diff options
Diffstat (limited to 'Library/PackageCache/com.unity.test-framework@1.1.11/UnityEngine.TestRunner/TestRunner/TestPlatform.cs')
| -rw-r--r-- | Library/PackageCache/com.unity.test-framework@1.1.11/UnityEngine.TestRunner/TestRunner/TestPlatform.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/PackageCache/com.unity.test-framework@1.1.11/UnityEngine.TestRunner/TestRunner/TestPlatform.cs b/Library/PackageCache/com.unity.test-framework@1.1.11/UnityEngine.TestRunner/TestRunner/TestPlatform.cs new file mode 100644 index 0000000..2c8a3a8 --- /dev/null +++ b/Library/PackageCache/com.unity.test-framework@1.1.11/UnityEngine.TestRunner/TestRunner/TestPlatform.cs @@ -0,0 +1,21 @@ +using System;
+
+namespace UnityEngine.TestTools
+{
+ [Flags]
+ [Serializable]
+ public enum TestPlatform : byte
+ {
+ All = 0xFF,
+ EditMode = 1 << 1,
+ PlayMode = 1 << 2
+ }
+
+ internal static class TestPlatformEnumExtensions
+ {
+ public static bool IsFlagIncluded(this TestPlatform flags, TestPlatform flag)
+ {
+ return (flags & flag) == flag;
+ }
+ }
+}
|
