-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c181a0
commit 9d35fcd
Showing
5 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using NUnit.Framework; | ||
using UnityEngine; | ||
using UnityEngine.TestTools; | ||
|
||
public class HelloWorld | ||
{ | ||
// A Test behaves as an ordinary method | ||
[Test] | ||
public void HelloWorldSimplePasses() | ||
{ | ||
Assert.True(true); | ||
} | ||
|
||
// A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use | ||
// `yield return null;` to skip a frame. | ||
[UnityTest] | ||
public IEnumerator HelloWorldWithEnumeratorPasses() | ||
{ | ||
// Use the Assert class to test conditions. | ||
// Use yield to skip a frame. | ||
yield return null; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "Tests", | ||
"optionalUnityReferences": [ | ||
"TestAssemblies" | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.