TestPlatform.cs 418 B

123456789101112131415161718192021
  1. using System;
  2. namespace UnityEngine.TestTools
  3. {
  4. [Flags]
  5. [Serializable]
  6. public enum TestPlatform : byte
  7. {
  8. All = 0xFF,
  9. EditMode = 1 << 1,
  10. PlayMode = 1 << 2
  11. }
  12. internal static class TestPlatformEnumExtensions
  13. {
  14. public static bool IsFlagIncluded(this TestPlatform flags, TestPlatform flag)
  15. {
  16. return (flags & flag) == flag;
  17. }
  18. }
  19. }