Skip to content

Commit

Permalink
feat: adding test hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristyanS committed Mar 7, 2024
1 parent 5c181a0 commit 9d35fcd
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Assets/Tests.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Assets/Tests/HelloWorld.cs
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;
}
}
11 changes: 11 additions & 0 deletions Assets/Tests/HelloWorld.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Assets/Tests/Tests.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "Tests",
"optionalUnityReferences": [
"TestAssemblies"
]
}
7 changes: 7 additions & 0 deletions Assets/Tests/Tests.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9d35fcd

Please sign in to comment.