-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPreBuildSetupWithTestDataAttributeExample.cs
More file actions
28 lines (26 loc) · 1013 Bytes
/
PreBuildSetupWithTestDataAttributeExample.cs
File metadata and controls
28 lines (26 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2021-2025 Koji Hasegawa.
// This software is released under the MIT License.
#if ENABLE_UTF_1_6
using NUnit.Framework;
using UnityEngine.TestTools;
namespace APIExamples.UnityTestFramework
{
/// <summary>
/// <see cref="UnityEngine.TestTools.PrebuildSetupWithTestDataAttribute"/> で指定した <see cref="UnityEngine.TestTools.IPrebuildSetupWithTestData"/> 実装クラスの <c>Setup</c> メソッドが使用されます
/// </summary>
/// <remarks>
/// Required: Unity Test Framework v1.6 or later
/// </remarks>
/// <seealso cref="PreBuildSetupAttributeExample"/>
[PrebuildSetupWithTestData(typeof(PreBuildSetupWithTestDataExample))]
[PostBuildCleanupWithTestData(typeof(PreBuildSetupWithTestDataExample))]
public class PreBuildSetupWithTestDataAttributeExample
{
[Test]
public void PrebuildSetupWithTestDataAttributeを付与したテストの例()
{
Assert.That(true, Is.True);
}
}
}
#endif