Skip to content

Commit d300676

Browse files
committed
Add template for Editor tests
1 parent b5b4dde commit d300676

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "Unity.com.3d-group.{{REPOSITORY_NAME}}.Editor.Tests",
3+
"references": [
4+
"Unity.com.3d-group.{{REPOSITORY_NAME}}"
5+
],
6+
"optionalUnityReferences": [
7+
"TestAssemblies"
8+
],
9+
"includePlatforms": [],
10+
"excludePlatforms": []
11+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using System.Collections;
2+
using NUnit.Framework;
3+
using UnityEditor;
4+
using UnityEngine;
5+
using UnityEngine.TestTools;
6+
using UnityEngine.UI;
7+
8+
namespace Tests.Runtime
9+
{
10+
public class {{FRIENDLY_NAME}}Tests
11+
{
12+
[SetUp]
13+
public void Setup()
14+
{
15+
}
16+
17+
[TearDown]
18+
public void Teardown()
19+
{
20+
}
21+
22+
[UnityTest]
23+
public void TestMethod_TestingHow_TestResult()
24+
{
25+
// Arrange
26+
27+
// Act
28+
yield return null;
29+
30+
// Assert
31+
Assert.AreEqual(1, 1);
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)