You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
848 B
C#
34 lines
848 B
C#
1 year ago
|
#if TEST_FRAMEWORK
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using JetBrains.Annotations;
|
||
|
using UnityEditor;
|
||
|
|
||
|
namespace Packages.Rider.Editor.UnitTesting
|
||
|
{
|
||
|
internal class CallbackData : ScriptableSingleton<CallbackData>
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// identifies that tests were started from Rider
|
||
|
/// </summary>
|
||
|
public bool isRider;
|
||
|
|
||
|
[UsedImplicitly] // Is used by Rider Unity plugin by reflection
|
||
|
public static event EventHandler Changed = (sender, args) => { };
|
||
|
|
||
|
internal void RaiseChangedEvent()
|
||
|
{
|
||
|
Changed(null, EventArgs.Empty);
|
||
|
}
|
||
|
|
||
|
[UsedImplicitly] // Is used by Rider Unity plugin by reflection
|
||
|
public List<TestEvent> events = new List<TestEvent>();
|
||
|
|
||
|
[UsedImplicitly] // Is used by Rider Unity plugin by reflection
|
||
|
public void Clear()
|
||
|
{
|
||
|
events.Clear();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|