A game about forced loneliness, made by TACStudios
1using System; 2using System.Linq; 3using NUnit.Framework.Interfaces; 4using NUnit.Framework.Internal; 5using UnityEngine.TestRunner.NUnitExtensions; 6 7namespace UnityEngine.TestRunner.TestLaunchers 8{ 9 [Serializable] 10 internal class RemoteTestData 11 { 12 public string id; 13 public string name; 14 public string fullName; 15 public int testCaseCount; 16 public int ChildIndex; 17 public bool hasChildren; 18 public bool isSuite; 19 public string[] childrenIds; 20 public int testCaseTimeout; 21 public string[] Categories; 22 public bool IsTestAssembly; 23 public RunState RunState; 24 public string Description; 25 public string SkipReason; 26 public string ParentId; 27 public string UniqueName; 28 public string ParentUniqueName; 29 public string ParentFullName; 30 31 internal RemoteTestData(ITest test) 32 { 33 id = test.Id; 34 name = test.Name; 35 fullName = test.FullName; 36 testCaseCount = test.TestCaseCount; 37 ChildIndex = -1; 38 if (test.Properties["childIndex"].Count > 0) 39 { 40 ChildIndex = (int)test.Properties["childIndex"][0]; 41 } 42 hasChildren = test.HasChildren; 43 isSuite = test.IsSuite; 44 childrenIds = test.Tests.Select(t => t.Id).ToArray(); 45 Categories = test.GetAllCategoriesFromTest().ToArray(); 46 IsTestAssembly = test is TestAssembly; 47 RunState = (RunState)Enum.Parse(typeof(RunState), test.RunState.ToString()); 48 Description = (string)test.Properties.Get(PropertyNames.Description); 49 SkipReason = test.GetSkipReason(); 50 ParentId = test.GetParentId(); 51 UniqueName = test.GetUniqueName(); 52 ParentUniqueName = test.GetParentUniqueName(); 53 ParentFullName = test.GetParentFullName(); 54 } 55 } 56}