-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPreBuildSetupExample.cs
More file actions
40 lines (36 loc) · 1.46 KB
/
PreBuildSetupExample.cs
File metadata and controls
40 lines (36 loc) · 1.46 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) 2021 Koji Hasegawa.
// This software is released under the MIT License.
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;
namespace APIExamples.UnityTestFramework
{
/// <summary>
/// ビルド前後に処理を挿むための <see cref="UnityEngine.TestTools.IPrebuildSetup"/> および <see cref="UnityEngine.TestTools.IPostBuildCleanup"/> の実装例
/// </summary>
public class PreBuildSetupExample : IPrebuildSetup, IPostBuildCleanup
{
///<inheritdoc/>
/// <remarks>
/// Unityエディター実行(Edit ModeテストおよびPlay Modeテスト)では、すべてのテストの実行に先立って実行されます。
/// プレイヤー実行(Play Modeテスト)では、ビルド前に実行されます。
/// </remarks>
public void Setup()
{
Debug.Log("PreBuildSetupExample.Setup");
}
///<inheritdoc/>
/// <remarks>
/// Unityエディター実行(Edit ModeテストおよびPlay Modeテスト)では、すべてのテストの実行終了後に実行されます。
/// プレイヤー実行(Play Modeテスト)では、ビルド後に実行されます。
/// </remarks>
public void Cleanup()
{
Debug.Log("PreBuildSetupExample.Cleanup");
}
[Test]
public void IPrebuildSetupを実装したテストの例()
{
}
}
}