A game about forced loneliness, made by TACStudios
1using System; 2 3namespace UnityEngine.TestTools 4{ 5 /// <summary> 6 /// PostBuildCleanup attributes run if the respective test or test class is in the current test run. The test is included either by running all tests or setting a [filter](https://docs.unity3d.com/Packages/com.unity.test-framework@1.1/manual/workflow-create-test.html#filters) that includes the test. If multiple tests reference the same pre-built setup or post-build cleanup, then it only runs once. 7 /// </summary> 8 [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)] 9 public class PostBuildCleanupAttribute : Attribute 10 { 11 /// <summary> 12 /// Initializes and returns an instance of PostBuildCleanupAttribute by type. 13 /// </summary> 14 /// <param name="targetClass">The type of the target class.</param> 15 public PostBuildCleanupAttribute(Type targetClass) 16 { 17 TargetClass = targetClass; 18 } 19 20 /// <summary> 21 /// Initializes and returns an instance of PostBuildCleanupAttribute by class name. 22 /// </summary> 23 /// <param name="targetClassName">The name of the target class.</param> 24 public PostBuildCleanupAttribute(string targetClassName) 25 { 26 TargetClass = AttributeHelper.GetTargetClassFromName(targetClassName, typeof(IPostBuildCleanup)); 27 } 28 29 internal Type TargetClass { get; private set; } 30 } 31}