using System; using System.Collections.Generic; using System.IO; using UnityEngine; [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public class IntegrationTestAttribute : Attribute { private readonly string m_Path; public IntegrationTestAttribute(string path) { if (path.EndsWith(".unity")) path = path.Substring(0, path.Length - ".unity".Length); m_Path = path; } public bool IncludeOnScene(string scenePath) { if (scenePath == m_Path) return true; var fileName = Path.GetFileNameWithoutExtension(scenePath); return fileName == m_Path; } }