GlobalGameJame/Library/PackageCache/com.unity.test-framework@1.1.9/UnityEngine.TestRunner/TestRunner/TestPlatform.cs
JonatanRek bea2dce063 Initial
test
2020-01-31 16:10:04 +01:00

22 lines
418 B
C#

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;
}
}
}