TestEvent.cs 793 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using NUnit.Framework.Interfaces;
  3. namespace Packages.Rider.Editor.UnitTesting
  4. {
  5. [Serializable]
  6. public enum EventType { TestStarted, TestFinished, RunFinished }
  7. [Serializable]
  8. public class TestEvent
  9. {
  10. public EventType type;
  11. public string id;
  12. public string assemblyName;
  13. public string output;
  14. public TestStatus testStatus;
  15. public double duration;
  16. public string parentId;
  17. public TestEvent(EventType type, string id, string assemblyName, string output, double duration, TestStatus testStatus, string parentID)
  18. {
  19. this.type = type;
  20. this.id = id;
  21. this.assemblyName = assemblyName;
  22. this.output = output;
  23. this.testStatus = testStatus;
  24. this.duration = duration;
  25. parentId = parentID;
  26. }
  27. }
  28. }