File size: 848 Bytes
18a519f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#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