You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
413 B
20 lines
413 B
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); |
|
} |
|
}
|
|
|