jump-game/Jump Game/Library/PackageCache/com.unity.test-framework@1.0.13/UnityEngine.TestRunner/TestRunner/TestPlatform.cs

22 lines
418 B
C#
Raw Normal View History

2020-01-29 08:05:38 +00:00
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;
}
}
}