Singularity/Library/PackageCache/com.unity.ide.rider@3.0.20/Rider/Editor/UnitTesting/TestEvent.cs
2024-05-06 11:45:45 -07:00

39 lines
1019 B
C#

#if TEST_FRAMEWORK
using System;
using NUnit.Framework.Interfaces;
namespace Packages.Rider.Editor.UnitTesting
{
/// <summary>
/// Is used by Rider Unity plugin by reflection
/// </summary>
[Serializable]
internal enum EventType { TestStarted, TestFinished, RunFinished, RunStarted } // do not reorder
/// <summary>
/// Is used by Rider Unity plugin by reflection
/// </summary>
[Serializable]
internal class TestEvent
{
public EventType type;
public string id;
public string assemblyName;
public string output;
public TestStatus testStatus;
public double duration;
public string parentId;
public TestEvent(EventType type, string id, string assemblyName, string output, double duration, TestStatus testStatus, string parentID)
{
this.type = type;
this.id = id;
this.assemblyName = assemblyName;
this.output = output;
this.testStatus = testStatus;
this.duration = duration;
parentId = parentID;
}
}
}
#endif