diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-04-19 17:19:32 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-04-19 17:19:32 -0400 |
| commit | c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78 (patch) | |
| tree | ee4d51c7c1d633e11f46453ef1edd3c77c4ef9f7 /Library/PackageCache/com.unity.test-framework@1.1.11/UnityEngine.TestRunner/TestRunner/RemoteHelpers/RemoteTestData.cs | |
| download | Project-Sandbox-c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78.tar.gz Project-Sandbox-c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78.tar.bz2 Project-Sandbox-c55fba8ab2a1c9d3df65eda4a5a1e957f4aa1f78.zip | |
Inital commit
Diffstat (limited to 'Library/PackageCache/com.unity.test-framework@1.1.11/UnityEngine.TestRunner/TestRunner/RemoteHelpers/RemoteTestData.cs')
| -rw-r--r-- | Library/PackageCache/com.unity.test-framework@1.1.11/UnityEngine.TestRunner/TestRunner/RemoteHelpers/RemoteTestData.cs | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Library/PackageCache/com.unity.test-framework@1.1.11/UnityEngine.TestRunner/TestRunner/RemoteHelpers/RemoteTestData.cs b/Library/PackageCache/com.unity.test-framework@1.1.11/UnityEngine.TestRunner/TestRunner/RemoteHelpers/RemoteTestData.cs new file mode 100644 index 0000000..eaf7078 --- /dev/null +++ b/Library/PackageCache/com.unity.test-framework@1.1.11/UnityEngine.TestRunner/TestRunner/RemoteHelpers/RemoteTestData.cs @@ -0,0 +1,56 @@ +using System;
+using System.Linq;
+using NUnit.Framework.Interfaces;
+using NUnit.Framework.Internal;
+using UnityEngine.TestRunner.NUnitExtensions;
+
+namespace UnityEngine.TestRunner.TestLaunchers
+{
+ [Serializable]
+ internal class RemoteTestData
+ {
+ public string id;
+ public string name;
+ public string fullName;
+ public int testCaseCount;
+ public int ChildIndex;
+ public bool hasChildren;
+ public bool isSuite;
+ public string[] childrenIds;
+ public int testCaseTimeout;
+ public string[] Categories;
+ public bool IsTestAssembly;
+ public RunState RunState;
+ public string Description;
+ public string SkipReason;
+ public string ParentId;
+ public string UniqueName;
+ public string ParentUniqueName;
+ public string ParentFullName;
+
+ internal RemoteTestData(ITest test)
+ {
+ id = test.Id;
+ name = test.Name;
+ fullName = test.FullName;
+ testCaseCount = test.TestCaseCount;
+ ChildIndex = -1;
+ if (test.Properties["childIndex"].Count > 0)
+ {
+ ChildIndex = (int)test.Properties["childIndex"][0];
+ }
+ hasChildren = test.HasChildren;
+ isSuite = test.IsSuite;
+ childrenIds = test.Tests.Select(t => t.Id).ToArray();
+ Categories = test.GetAllCategoriesFromTest().ToArray();
+ IsTestAssembly = test is TestAssembly;
+ RunState = (RunState)Enum.Parse(typeof(RunState), test.RunState.ToString());
+ Description = (string)test.Properties.Get(PropertyNames.Description);
+ SkipReason = test.GetSkipReason();
+ ParentId = test.GetParentId();
+ UniqueName = test.GetUniqueName();
+ ParentUniqueName = test.GetParentUniqueName();
+ ParentFullName = test.GetParentFullName();
+ }
+ }
+}
|
