You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
418 B
21 lines
418 B
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;
|
|
}
|
|
}
|
|
}
|