Maze / Library /PackageCache /com.unity.ide.rider@3.0.21 /Rider /Editor /UnitTesting /CallbackData.cs
| 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; | |
| [] // Is used by Rider Unity plugin by reflection | |
| public static event EventHandler Changed = (sender, args) => { }; | |
| internal void RaiseChangedEvent() | |
| { | |
| Changed(null, EventArgs.Empty); | |
| } | |
| [] // Is used by Rider Unity plugin by reflection | |
| public List<TestEvent> events = new List<TestEvent>(); | |
| [] // Is used by Rider Unity plugin by reflection | |
| public void Clear() | |
| { | |
| events.Clear(); | |
| } | |
| } | |
| } | |