Initial Commit
This commit is contained in:
parent
53eb92e9af
commit
270ab7d11f
15341 changed files with 700234 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
|||
using NUnit.Framework;
|
||||
using UnityEngine;
|
||||
|
||||
public class TestBehaviourBase<T> where T : Behaviour
|
||||
{
|
||||
protected T m_TestObject;
|
||||
|
||||
[SetUp]
|
||||
public virtual void TestSetup()
|
||||
{
|
||||
var gameObject = new GameObject();
|
||||
m_TestObject = gameObject.AddComponent<T>();
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public virtual void Teardown()
|
||||
{
|
||||
GameObject.DestroyImmediate(m_TestObject.gameObject);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue