mirror of
https://github.com/ConjureETS/ProjectClubCore.git
synced 2026-03-24 09:30:58 +00:00
Added root namespace for tests
This commit is contained in:
parent
62fc52d9bd
commit
8ce2f36581
@ -1,9 +1,23 @@
|
|||||||
{
|
{
|
||||||
"name": "EditMode",
|
"name": "EditMode",
|
||||||
"optionalUnityReferences": [
|
"rootNamespace": "Squelette.Tests.EditMode",
|
||||||
"TestAssemblies"
|
"references": [
|
||||||
|
"UnityEngine.TestRunner",
|
||||||
|
"UnityEditor.TestRunner"
|
||||||
],
|
],
|
||||||
"includePlatforms": [
|
"includePlatforms": [
|
||||||
"Editor"
|
"Editor"
|
||||||
]
|
],
|
||||||
|
"excludePlatforms": [],
|
||||||
|
"allowUnsafeCode": false,
|
||||||
|
"overrideReferences": true,
|
||||||
|
"precompiledReferences": [
|
||||||
|
"nunit.framework.dll"
|
||||||
|
],
|
||||||
|
"autoReferenced": false,
|
||||||
|
"defineConstraints": [
|
||||||
|
"UNITY_INCLUDE_TESTS"
|
||||||
|
],
|
||||||
|
"versionDefines": [],
|
||||||
|
"noEngineReferences": false
|
||||||
}
|
}
|
||||||
@ -4,22 +4,21 @@ using NUnit.Framework;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.TestTools;
|
using UnityEngine.TestTools;
|
||||||
|
|
||||||
public class Tests
|
namespace Squelette.Tests.EditMode {
|
||||||
{
|
public class Tests {
|
||||||
// A Test behaves as an ordinary method
|
// A Test behaves as an ordinary method
|
||||||
[Test]
|
[Test]
|
||||||
public void TestsSimplePasses()
|
public void TestsSimplePasses() {
|
||||||
{
|
// Use the Assert class to test conditions
|
||||||
// Use the Assert class to test conditions
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use
|
// A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use
|
||||||
// `yield return null;` to skip a frame.
|
// `yield return null;` to skip a frame.
|
||||||
[UnityTest]
|
[UnityTest]
|
||||||
public IEnumerator TestsWithEnumeratorPasses()
|
public IEnumerator TestsWithEnumeratorPasses() {
|
||||||
{
|
// Use the Assert class to test conditions.
|
||||||
// Use the Assert class to test conditions.
|
// Use yield to skip a frame.
|
||||||
// Use yield to skip a frame.
|
yield return null;
|
||||||
yield return null;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,6 +1,21 @@
|
|||||||
{
|
{
|
||||||
"name": "PlayMode",
|
"name": "PlayMode",
|
||||||
"optionalUnityReferences": [
|
"rootNamespace": "Squelette.Tests.PlayMode",
|
||||||
"TestAssemblies"
|
"references": [
|
||||||
]
|
"UnityEngine.TestRunner",
|
||||||
|
"UnityEditor.TestRunner"
|
||||||
|
],
|
||||||
|
"includePlatforms": [],
|
||||||
|
"excludePlatforms": [],
|
||||||
|
"allowUnsafeCode": false,
|
||||||
|
"overrideReferences": true,
|
||||||
|
"precompiledReferences": [
|
||||||
|
"nunit.framework.dll"
|
||||||
|
],
|
||||||
|
"autoReferenced": false,
|
||||||
|
"defineConstraints": [
|
||||||
|
"UNITY_INCLUDE_TESTS"
|
||||||
|
],
|
||||||
|
"versionDefines": [],
|
||||||
|
"noEngineReferences": false
|
||||||
}
|
}
|
||||||
@ -4,22 +4,21 @@ using NUnit.Framework;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.TestTools;
|
using UnityEngine.TestTools;
|
||||||
|
|
||||||
public class Tests
|
namespace Squelette.Tests.PlayMode {
|
||||||
{
|
public class Tests {
|
||||||
// A Test behaves as an ordinary method
|
// A Test behaves as an ordinary method
|
||||||
[Test]
|
[Test]
|
||||||
public void TestsSimplePasses()
|
public void TestsSimplePasses() {
|
||||||
{
|
// Use the Assert class to test conditions
|
||||||
// Use the Assert class to test conditions
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use
|
// A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use
|
||||||
// `yield return null;` to skip a frame.
|
// `yield return null;` to skip a frame.
|
||||||
[UnityTest]
|
[UnityTest]
|
||||||
public IEnumerator TestsWithEnumeratorPasses()
|
public IEnumerator TestsWithEnumeratorPasses() {
|
||||||
{
|
// Use the Assert class to test conditions.
|
||||||
// Use the Assert class to test conditions.
|
// Use yield to skip a frame.
|
||||||
// Use yield to skip a frame.
|
yield return null;
|
||||||
yield return null;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user