mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
36 lines
886 B
C#
36 lines
886 B
C#
using NUnit.Framework.Interfaces;
|
|
|
|
namespace UnityEngine.TestTools.TestRunner.Callbacks
|
|
{
|
|
internal class TestResultRendererCallback : MonoBehaviour, ITestRunnerListener
|
|
{
|
|
private TestResultRenderer m_ResultRenderer;
|
|
public void RunStarted(ITest testsToRun)
|
|
{
|
|
}
|
|
|
|
public void RunFinished(ITestResult testResults)
|
|
{
|
|
if (Camera.main == null)
|
|
{
|
|
gameObject.AddComponent<Camera>();
|
|
}
|
|
m_ResultRenderer = new TestResultRenderer(testResults);
|
|
m_ResultRenderer.ShowResults();
|
|
}
|
|
|
|
public void OnGUI()
|
|
{
|
|
if (m_ResultRenderer != null)
|
|
m_ResultRenderer.Draw();
|
|
}
|
|
|
|
public void TestStarted(ITest test)
|
|
{
|
|
}
|
|
|
|
public void TestFinished(ITestResult result)
|
|
{
|
|
}
|
|
}
|
|
}
|