No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TestEvent.cs 1019B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #if TEST_FRAMEWORK
  2. using System;
  3. using NUnit.Framework.Interfaces;
  4. namespace Packages.Rider.Editor.UnitTesting
  5. {
  6. /// <summary>
  7. /// Is used by Rider Unity plugin by reflection
  8. /// </summary>
  9. [Serializable]
  10. internal enum EventType { TestStarted, TestFinished, RunFinished, RunStarted } // do not reorder
  11. /// <summary>
  12. /// Is used by Rider Unity plugin by reflection
  13. /// </summary>
  14. [Serializable]
  15. internal class TestEvent
  16. {
  17. public EventType type;
  18. public string id;
  19. public string assemblyName;
  20. public string output;
  21. public TestStatus testStatus;
  22. public double duration;
  23. public string parentId;
  24. public TestEvent(EventType type, string id, string assemblyName, string output, double duration, TestStatus testStatus, string parentID)
  25. {
  26. this.type = type;
  27. this.id = id;
  28. this.assemblyName = assemblyName;
  29. this.output = output;
  30. this.testStatus = testStatus;
  31. this.duration = duration;
  32. parentId = parentID;
  33. }
  34. }
  35. }
  36. #endif