TestAdaptor.cs 745 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using UnityEditor.TestTools.TestRunner.Api;
  3. namespace Microsoft.Unity.VisualStudio.Editor.Testing
  4. {
  5. [Serializable]
  6. internal class TestAdaptorContainer
  7. {
  8. public TestAdaptor[] TestAdaptors;
  9. }
  10. [Serializable]
  11. internal class TestAdaptor
  12. {
  13. public string Id;
  14. public string Name;
  15. public string FullName;
  16. public string Type;
  17. public string Method;
  18. public string Assembly;
  19. public int Parent;
  20. public TestAdaptor(ITestAdaptor testAdaptor, int parent)
  21. {
  22. Id = testAdaptor.Id;
  23. Name = testAdaptor.Name;
  24. FullName = testAdaptor.FullName;
  25. Type = testAdaptor.TypeInfo?.FullName;
  26. Method = testAdaptor.Method?.Name;
  27. Assembly = testAdaptor.TypeInfo?.Assembly?.Location;
  28. Parent = parent;
  29. }
  30. }
  31. }