From 3fa6e1d1ec7b3bd318bb374e52600ca72ab483c3 Mon Sep 17 00:00:00 2001 From: Koji Hasegawa Date: Wed, 8 May 2024 07:08:49 +0900 Subject: [PATCH] Fix BuildSceneAttribute to allow multiple --- Runtime/Attributes/BuildSceneAttribute.cs | 2 +- Runtime/Attributes/LoadSceneAttribute.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 { ///