diff --git a/Runtime/Attributes/BuildSceneAttribute.cs b/Runtime/Attributes/BuildSceneAttribute.cs index 26aa713..ab823c1 100644 --- a/Runtime/Attributes/BuildSceneAttribute.cs +++ b/Runtime/Attributes/BuildSceneAttribute.cs @@ -11,7 +11,7 @@ namespace TestHelper.Attributes /// /// Build scene before running test on player. /// - [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)] + [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)] public class BuildSceneAttribute : NUnitAttribute { internal string ScenePath { get; private set; } diff --git a/Runtime/Attributes/LoadSceneAttribute.cs b/Runtime/Attributes/LoadSceneAttribute.cs index 6dbbbd6..d780e08 100644 --- a/Runtime/Attributes/LoadSceneAttribute.cs +++ b/Runtime/Attributes/LoadSceneAttribute.cs @@ -14,7 +14,7 @@ namespace TestHelper.Attributes /// /// Load scene before running test. /// - [AttributeUsage(AttributeTargets.Method)] + [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] public class LoadSceneAttribute : BuildSceneAttribute, IOuterUnityTestAction { ///