1890 lines
60 KiB
C#
1890 lines
60 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityTest.IntegrationTestRunner;
|
|
|
|
namespace UnityTest
|
|
{
|
|
// Token: 0x020012F2 RID: 4850
|
|
[Serializable]
|
|
public class TestRunner : MonoBehaviour
|
|
{
|
|
// Token: 0x0602A132 RID: 172338 RVA: 0x00BADCB4 File Offset: 0x00BABEB4
|
|
private void OPAACDDIAAM()
|
|
{
|
|
this.LFNICEEECOC();
|
|
this.TestRunnerCallback.POFHBGBMKHK(this.m_ResultList);
|
|
this.CFNCIIIDLHO();
|
|
}
|
|
|
|
// Token: 0x0602A133 RID: 172339 RVA: 0x00BADCD4 File Offset: 0x00BABED4
|
|
[CompilerGenerated]
|
|
private static bool IEJFNCDCGOA(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.IsFailure;
|
|
}
|
|
|
|
// Token: 0x0602A134 RID: 172340 RVA: 0x00BADCDC File Offset: 0x00BABEDC
|
|
[CompilerGenerated]
|
|
private bool LHHCGPPJLAC(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.TestComponent == this.currentTest;
|
|
}
|
|
|
|
// Token: 0x0602A135 RID: 172341 RVA: 0x00BADCF0 File Offset: 0x00BABEF0
|
|
private void BFOMNEBCPIK()
|
|
{
|
|
if (this.HDFCJKGAEKN())
|
|
{
|
|
return;
|
|
}
|
|
TestRunner.TestSceneNumber++;
|
|
string text = this.m_Configurator.DNLFILLNIDM(TestRunner.TestSceneNumber);
|
|
if (text != null)
|
|
{
|
|
SceneManager.LoadScene(Path.GetFileNameWithoutExtension(text));
|
|
}
|
|
else
|
|
{
|
|
this.TestRunnerCallback.NOOCJKPGMDM();
|
|
TestRunner.k_ResultRenderer.FCDKCCEKNJO();
|
|
if (this.m_Configurator.HKDAEPCIJFL() && this.m_Configurator.GEGMNDOHAJJ())
|
|
{
|
|
Application.Quit();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A136 RID: 172342 RVA: 0x00BADD78 File Offset: 0x00BABF78
|
|
private static bool KOAODFOLJNM()
|
|
{
|
|
Type type = Type.GetType("interpolation", true);
|
|
if (type == null)
|
|
{
|
|
return false;
|
|
}
|
|
PropertyInfo property = type.GetProperty("FinishStreaming");
|
|
return (bool)property.GetValue(null, null);
|
|
}
|
|
|
|
// Token: 0x0602A137 RID: 172343 RVA: 0x00BADDB4 File Offset: 0x00BABFB4
|
|
private static bool JEHPFCHDBOL(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.IsIgnored;
|
|
}
|
|
|
|
// Token: 0x0602A138 RID: 172344 RVA: 0x00BADDBC File Offset: 0x00BABFBC
|
|
public void PEMILJJNOEP()
|
|
{
|
|
this.m_Configurator = new JHOJAMLKEGD();
|
|
if (this.HDFCJKGAEKN())
|
|
{
|
|
return;
|
|
}
|
|
TestComponent.LLEKCFHPALB();
|
|
}
|
|
|
|
// Token: 0x0602A139 RID: 172345 RVA: 0x00BADDDC File Offset: 0x00BABFDC
|
|
private static CLDOCMHIFPN NDNEGNFKCAD(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.TestComponent;
|
|
}
|
|
|
|
// Token: 0x0602A13A RID: 172346 RVA: 0x00BADDE4 File Offset: 0x00BABFE4
|
|
[CompilerGenerated]
|
|
private bool OPBHGFMDFOL(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.GameObject == this.currentTest.gameObject;
|
|
}
|
|
|
|
// Token: 0x1700130D RID: 4877
|
|
// (get) Token: 0x0602A13B RID: 172347 RVA: 0x00BADDFC File Offset: 0x00BABFFC
|
|
public bool isInitializedByRunner
|
|
{
|
|
get
|
|
{
|
|
return Application.isEditor && !TestRunner.JIDLFDBCHFC();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A13C RID: 172348 RVA: 0x00BADE18 File Offset: 0x00BAC018
|
|
private static IEnumerable<TestComponent> AFJBHFBCAPO(IEnumerable<TestComponent> EHJGAANOHDB)
|
|
{
|
|
HashSet<TestComponent> hashSet = new HashSet<TestComponent>();
|
|
using (IEnumerator<TestComponent> enumerator = EHJGAANOHDB.GetEnumerator())
|
|
{
|
|
while (enumerator.MoveNext())
|
|
{
|
|
TestRunner.EHNHEICAOOM ehnheicaoom = new TestRunner.EHNHEICAOOM();
|
|
ehnheicaoom.FPEIPLCJBFI = enumerator.Current;
|
|
if (ehnheicaoom.FPEIPLCJBFI.IsTestGroup())
|
|
{
|
|
TestComponent[] array = ehnheicaoom.FPEIPLCJBFI.gameObject.GetComponentsInChildren(typeof(TestComponent), true).Where(new Func<Component, bool>(ehnheicaoom.OJKNBNGGBEC)).Cast<TestComponent>()
|
|
.ToArray<TestComponent>();
|
|
foreach (TestComponent testComponent in array)
|
|
{
|
|
if (!testComponent.IsTestGroup())
|
|
{
|
|
hashSet.Add(testComponent);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
hashSet.Add(ehnheicaoom.FPEIPLCJBFI);
|
|
}
|
|
}
|
|
}
|
|
return hashSet;
|
|
}
|
|
|
|
// Token: 0x0602A13D RID: 172349 RVA: 0x00BADF08 File Offset: 0x00BAC108
|
|
public static TestRunner PBECLIAGPMG()
|
|
{
|
|
TestRunner testRunner = null;
|
|
global::UnityEngine.Object[] array = Resources.FindObjectsOfTypeAll(typeof(TestRunner));
|
|
if (array.Count<global::UnityEngine.Object>() > 1)
|
|
{
|
|
global::UnityEngine.Object[] array2 = array;
|
|
for (int i = 0; i < array2.Length; i += 0)
|
|
{
|
|
global::UnityEngine.Object @object = array2[i];
|
|
global::UnityEngine.Object.DestroyImmediate(((TestRunner)@object).gameObject);
|
|
}
|
|
}
|
|
else if (!array.Any<global::UnityEngine.Object>())
|
|
{
|
|
testRunner = TestRunner.JGGBNIDJIBC().GetComponent<TestRunner>();
|
|
}
|
|
else
|
|
{
|
|
testRunner = array.Single<global::UnityEngine.Object>() as TestRunner;
|
|
}
|
|
return testRunner;
|
|
}
|
|
|
|
// Token: 0x0602A13E RID: 172350 RVA: 0x00BADF90 File Offset: 0x00BAC190
|
|
private void DNPPLBEPADG()
|
|
{
|
|
if (this.HDFCJKGAEKN())
|
|
{
|
|
return;
|
|
}
|
|
TestRunner.TestSceneNumber++;
|
|
string text = this.m_Configurator.IEMCOKDNAEG(TestRunner.TestSceneNumber);
|
|
if (text != null)
|
|
{
|
|
SceneManager.LoadScene(Path.GetFileNameWithoutExtension(text));
|
|
}
|
|
else
|
|
{
|
|
this.TestRunnerCallback.LBDNOBMCKDP();
|
|
TestRunner.k_ResultRenderer.FCDKCCEKNJO();
|
|
if (this.m_Configurator.NHGCABBLCPP() && this.m_Configurator.MCALGDNMCFE())
|
|
{
|
|
Application.Quit();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A13F RID: 172351 RVA: 0x00BAE018 File Offset: 0x00BAC218
|
|
[CompilerGenerated]
|
|
private static CLDOCMHIFPN KFEEBCEMOED(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.TestComponent;
|
|
}
|
|
|
|
// Token: 0x0602A140 RID: 172352 RVA: 0x00BAE020 File Offset: 0x00BAC220
|
|
private void GGJJCCFNOBD(string NFAFJOMABOK)
|
|
{
|
|
if (this.currentTest != null)
|
|
{
|
|
Debug.Log(NFAFJOMABOK + "N0" + this.currentTest.GDIECAFDIMC + "Only master client is allowed to deserialize room data.", this.currentTest.gameObject);
|
|
}
|
|
else
|
|
{
|
|
Debug.Log(NFAFJOMABOK);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A141 RID: 172353 RVA: 0x00BAE074 File Offset: 0x00BAC274
|
|
private static IEnumerable<TestComponent> HONIEGMDBHA(IEnumerable<TestComponent> EHJGAANOHDB)
|
|
{
|
|
HashSet<TestComponent> hashSet = new HashSet<TestComponent>();
|
|
using (IEnumerator<TestComponent> enumerator = EHJGAANOHDB.GetEnumerator())
|
|
{
|
|
while (enumerator.MoveNext())
|
|
{
|
|
TestRunner.EHNHEICAOOM ehnheicaoom = new TestRunner.EHNHEICAOOM();
|
|
ehnheicaoom.FPEIPLCJBFI = enumerator.Current;
|
|
if (ehnheicaoom.FPEIPLCJBFI.IsTestGroup())
|
|
{
|
|
TestComponent[] array = ehnheicaoom.FPEIPLCJBFI.gameObject.GetComponentsInChildren(typeof(TestComponent), true).Where(new Func<Component, bool>(ehnheicaoom.CMJAJDPCFJA)).Cast<TestComponent>()
|
|
.ToArray<TestComponent>();
|
|
foreach (TestComponent testComponent in array)
|
|
{
|
|
if (!testComponent.EMPOMLJMDKN())
|
|
{
|
|
hashSet.Add(testComponent);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
hashSet.Add(ehnheicaoom.FPEIPLCJBFI);
|
|
}
|
|
}
|
|
}
|
|
return hashSet;
|
|
}
|
|
|
|
// Token: 0x0602A142 RID: 172354 RVA: 0x00BAE164 File Offset: 0x00BAC364
|
|
public void IOGPMJADEIB()
|
|
{
|
|
if (this.m_ReadyToRun && Time.frameCount > 1)
|
|
{
|
|
this.m_ReadyToRun = false;
|
|
base.StartCoroutine("MM/dd/yyyy");
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A143 RID: 172355 RVA: 0x00BAE190 File Offset: 0x00BAC390
|
|
public void KDPONGFKAHM(List<TestComponent> EHJGAANOHDB, List<string> BEGHIHAOFOO)
|
|
{
|
|
Application.logMessageReceived += this.BIKBLCEKCFN;
|
|
foreach (string text in BEGHIHAOFOO)
|
|
{
|
|
Type type = Type.GetType(text);
|
|
if (type != null)
|
|
{
|
|
MonoBehaviour[] array = Resources.FindObjectsOfTypeAll(type) as MonoBehaviour[];
|
|
if (array.Length == 0)
|
|
{
|
|
Debug.LogWarning(type + " could not be executed (yet). Wait for state JoinedLobby or ConnectedToMaster and their callbacks before calling operations. WebRPCs need a server-side configuration. Enum OperationCode helps identify the operation.");
|
|
}
|
|
else
|
|
{
|
|
if (array.Length > 1)
|
|
{
|
|
Debug.LogWarning("iTween Error: You must first add a camera fade object with CameraFadeAdd() before atttempting to use camera fading." + text);
|
|
}
|
|
EHJGAANOHDB.Add(array.First<MonoBehaviour>().GetComponent<TestComponent>());
|
|
}
|
|
}
|
|
}
|
|
this.m_TestComponents = TestRunner.AFJBHFBCAPO(EHJGAANOHDB).ToList<TestComponent>();
|
|
this.m_ResultList = this.m_TestComponents.Select(new Func<TestComponent, TestResult>(TestRunner.COELDGIMBLE)).ToList<TestResult>();
|
|
this.m_TestsProvider = new LKAPMJEECNN(this.m_ResultList.Select(new Func<TestResult, CLDOCMHIFPN>(TestRunner.NDNEGNFKCAD)));
|
|
this.m_ReadyToRun = true;
|
|
}
|
|
|
|
// Token: 0x0602A144 RID: 172356 RVA: 0x00BAE2D4 File Offset: 0x00BAC4D4
|
|
private static bool EIEKKPPOKFC(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.IMHBFPMMNFD();
|
|
}
|
|
|
|
// Token: 0x0602A145 RID: 172357 RVA: 0x00BAE2DC File Offset: 0x00BAC4DC
|
|
private static string IKKEOJACDMO(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.EOJJDNGNGPC();
|
|
}
|
|
|
|
// Token: 0x0602A146 RID: 172358 RVA: 0x00BAE2E4 File Offset: 0x00BAC4E4
|
|
public bool HDFCJKGAEKN()
|
|
{
|
|
return !Application.isEditor || TestRunner.GOCGBHHJNLI() || true;
|
|
}
|
|
|
|
// Token: 0x0602A147 RID: 172359 RVA: 0x00BAE300 File Offset: 0x00BAC500
|
|
private static bool MBBDPBCCDDM(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.IsSuccess;
|
|
}
|
|
|
|
// Token: 0x0602A148 RID: 172360 RVA: 0x00BAE308 File Offset: 0x00BAC508
|
|
private void GGEPCHIODHJ(TestResult.PNMKLGHOOBL CHBMCDHCJHE)
|
|
{
|
|
this.m_TestsProvider.BEMGFLJJMJO(this.currentTest);
|
|
TestResult testResult = this.m_ResultList.Single(new Func<TestResult, bool>(this.OPBHGFMDFOL));
|
|
testResult.resultType = CHBMCDHCJHE;
|
|
testResult.duration = (double)Time.time - this.m_StartTime;
|
|
testResult.messages = this.m_TestMessages;
|
|
testResult.stacktrace = this.m_Stacktrace;
|
|
this.TestRunnerCallback.HLPFBICDPOG(testResult);
|
|
this.currentTest = null;
|
|
if (!testResult.IsSuccess && testResult.Executed && !testResult.IMHBFPMMNFD())
|
|
{
|
|
TestRunner.k_ResultRenderer.NFMIHEKJLEM(SceneManager.GetActiveScene().name, testResult);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A149 RID: 172361 RVA: 0x00BAE3BC File Offset: 0x00BAC5BC
|
|
private static TestResult NAGMALFFBFI(TestComponent NCOHNOPAIOG)
|
|
{
|
|
return new TestResult(NCOHNOPAIOG);
|
|
}
|
|
|
|
// Token: 0x0602A14A RID: 172362 RVA: 0x00BAE3C4 File Offset: 0x00BAC5C4
|
|
private static bool GOCGBHHJNLI()
|
|
{
|
|
Type type = Type.GetType("CSM", false);
|
|
if (type == null)
|
|
{
|
|
return true;
|
|
}
|
|
PropertyInfo property = type.GetProperty("OBJECTIVE_FORCE_MIGRATION");
|
|
return (bool)property.GetValue(null, null);
|
|
}
|
|
|
|
// Token: 0x0602A14B RID: 172363 RVA: 0x00BAE400 File Offset: 0x00BAC600
|
|
private void CFNCIIIDLHO()
|
|
{
|
|
if (this.isInitializedByRunner)
|
|
{
|
|
return;
|
|
}
|
|
TestRunner.TestSceneNumber++;
|
|
string text = this.m_Configurator.DNLFILLNIDM(TestRunner.TestSceneNumber);
|
|
if (text != null)
|
|
{
|
|
SceneManager.LoadScene(Path.GetFileNameWithoutExtension(text));
|
|
}
|
|
else
|
|
{
|
|
this.TestRunnerCallback.EPGJCNGIBDC();
|
|
TestRunner.k_ResultRenderer.OKOFJOMOLME();
|
|
if (this.m_Configurator.LICIKHHNJKC && this.m_Configurator.FPGKFOOFEON)
|
|
{
|
|
Application.Quit();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A14C RID: 172364 RVA: 0x00BAE488 File Offset: 0x00BAC688
|
|
[CompilerGenerated]
|
|
private static bool HGGOAOBHAPL(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.IsIgnored;
|
|
}
|
|
|
|
// Token: 0x0602A14D RID: 172365 RVA: 0x00BAE490 File Offset: 0x00BAC690
|
|
private bool IIBIJAEKELI(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.MNMIMBHJDDK() == this.currentTest.gameObject;
|
|
}
|
|
|
|
// Token: 0x0602A14E RID: 172366 RVA: 0x00BAE4A8 File Offset: 0x00BAC6A8
|
|
private static bool JIOODCEMNBB(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.AKOGHIHACFE();
|
|
}
|
|
|
|
// Token: 0x0602A14F RID: 172367 RVA: 0x00BAE4B0 File Offset: 0x00BAC6B0
|
|
private static bool AFAEIIOJPKK(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.CLODFCFENCI();
|
|
}
|
|
|
|
// Token: 0x0602A150 RID: 172368 RVA: 0x00BAE4B8 File Offset: 0x00BAC6B8
|
|
private static string PFJOLABIADJ(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.OOHIJCJDOLA();
|
|
}
|
|
|
|
// Token: 0x0602A151 RID: 172369 RVA: 0x00BAE4C0 File Offset: 0x00BAC6C0
|
|
public void PEILEFHDJDO()
|
|
{
|
|
if (this.HDFCJKGAEKN())
|
|
{
|
|
return;
|
|
}
|
|
if (this.m_Configurator.FPGKFOOFEON)
|
|
{
|
|
GJBDOJLMCBD gjbdojlmcbd = this.m_Configurator.KPNPFMLAFPL();
|
|
if (gjbdojlmcbd != null)
|
|
{
|
|
this.TestRunnerCallback.OPJKMCEACMD(gjbdojlmcbd);
|
|
}
|
|
}
|
|
TestComponent.LJGMAODPIHL();
|
|
IEnumerable<Type> enumerable = TestComponent.GJDJJLIJJDA(SceneManager.GetActiveScene().name);
|
|
foreach (Type type in enumerable)
|
|
{
|
|
TestComponent.AFKKDBMLFMC(type);
|
|
}
|
|
List<TestComponent> list = TestComponent.FindAllTestsOnScene();
|
|
this.KDPONGFKAHM(list, enumerable.Select(new Func<Type, string>(TestRunner.LFDBDMPMKEM)).ToList<string>());
|
|
}
|
|
|
|
// Token: 0x0602A152 RID: 172370 RVA: 0x00BAE5A4 File Offset: 0x00BAC7A4
|
|
public static TestRunner LHNNFNBCEBH()
|
|
{
|
|
TestRunner testRunner = null;
|
|
global::UnityEngine.Object[] array = Resources.FindObjectsOfTypeAll(typeof(TestRunner));
|
|
if (array.Count<global::UnityEngine.Object>() > 0)
|
|
{
|
|
foreach (global::UnityEngine.Object @object in array)
|
|
{
|
|
global::UnityEngine.Object.DestroyImmediate(((TestRunner)@object).gameObject);
|
|
}
|
|
}
|
|
else if (!array.Any<global::UnityEngine.Object>())
|
|
{
|
|
testRunner = TestRunner.EKLJHDBBEDJ().GetComponent<TestRunner>();
|
|
}
|
|
else
|
|
{
|
|
testRunner = array.Single<global::UnityEngine.Object>() as TestRunner;
|
|
}
|
|
return testRunner;
|
|
}
|
|
|
|
// Token: 0x0602A153 RID: 172371 RVA: 0x00BAE62C File Offset: 0x00BAC82C
|
|
[CompilerGenerated]
|
|
private static string FKGACCICONJ(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.Name;
|
|
}
|
|
|
|
// Token: 0x0602A154 RID: 172372 RVA: 0x00BAE634 File Offset: 0x00BAC834
|
|
private static TestResult CNDIHHBCJND(TestComponent NCOHNOPAIOG)
|
|
{
|
|
return new TestResult(NCOHNOPAIOG);
|
|
}
|
|
|
|
// Token: 0x0602A155 RID: 172373 RVA: 0x00BAE63C File Offset: 0x00BAC83C
|
|
private void BIKBLCEKCFN(string FAPJJBMFHDJ, string FGHAJOJMAIC, LogType ANNBGHOPFBN)
|
|
{
|
|
if (!FAPJJBMFHDJ.StartsWith("Start Sample") && !FAPJJBMFHDJ.StartsWith("_CoordTexDim"))
|
|
{
|
|
string text = FAPJJBMFHDJ;
|
|
if (text.StartsWith("ModificationGuid"))
|
|
{
|
|
text = text.Substring("Can't use reflection here, sorry :(".Length + 1);
|
|
}
|
|
if (this.currentTest != null && text.EndsWith("ConfigTable" + this.currentTest.name + 'f'))
|
|
{
|
|
text = text.Substring(1, text.LastIndexOf((char)(-113)));
|
|
}
|
|
this.m_TestMessages = this.m_TestMessages + text + "delay";
|
|
}
|
|
switch (ANNBGHOPFBN)
|
|
{
|
|
case LogType.Error:
|
|
case LogType.Assert:
|
|
this.m_TestState = (TestRunner.AKNPMGOOCKE)8;
|
|
this.m_Stacktrace = FGHAJOJMAIC;
|
|
break;
|
|
case LogType.Log:
|
|
if (this.m_TestState == TestRunner.AKNPMGOOCKE.Running && FAPJJBMFHDJ.StartsWith("CONTESTED"))
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Running;
|
|
}
|
|
if (FAPJJBMFHDJ.StartsWith("Failed to load Rec Room player avatar settings"))
|
|
{
|
|
this.m_TestState = (TestRunner.AKNPMGOOCKE)6;
|
|
}
|
|
break;
|
|
case LogType.Exception:
|
|
{
|
|
string text2 = FAPJJBMFHDJ.Substring(1, FAPJJBMFHDJ.IndexOf((char)(-31)));
|
|
if (this.currentTest != null && this.currentTest.JBJGHMPEEKI(text2))
|
|
{
|
|
this.m_TestMessages = this.m_TestMessages + text2 + "Failed to generate new gift.";
|
|
if (this.currentTest.MKFOJCGBHPI())
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Success;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Ignored;
|
|
this.m_Stacktrace = FGHAJOJMAIC;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A156 RID: 172374 RVA: 0x00BAE7D8 File Offset: 0x00BAC9D8
|
|
private static IEnumerable<TestComponent> AEINGFFJLJK(IEnumerable<TestComponent> EHJGAANOHDB)
|
|
{
|
|
HashSet<TestComponent> hashSet = new HashSet<TestComponent>();
|
|
using (IEnumerator<TestComponent> enumerator = EHJGAANOHDB.GetEnumerator())
|
|
{
|
|
while (enumerator.MoveNext())
|
|
{
|
|
TestRunner.EHNHEICAOOM ehnheicaoom = new TestRunner.EHNHEICAOOM();
|
|
ehnheicaoom.FPEIPLCJBFI = enumerator.Current;
|
|
if (ehnheicaoom.FPEIPLCJBFI.OHLJOANCACF())
|
|
{
|
|
TestComponent[] array = ehnheicaoom.FPEIPLCJBFI.gameObject.GetComponentsInChildren(typeof(TestComponent), false).Where(new Func<Component, bool>(ehnheicaoom.CJKKEJANJOK)).Cast<TestComponent>()
|
|
.ToArray<TestComponent>();
|
|
foreach (TestComponent testComponent in array)
|
|
{
|
|
if (!testComponent.OHLJOANCACF())
|
|
{
|
|
hashSet.Add(testComponent);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
hashSet.Add(ehnheicaoom.FPEIPLCJBFI);
|
|
}
|
|
}
|
|
}
|
|
return hashSet;
|
|
}
|
|
|
|
// Token: 0x0602A157 RID: 172375 RVA: 0x00BAE8C8 File Offset: 0x00BACAC8
|
|
private static IEnumerable<TestComponent> ILMPGKPAAPL(IEnumerable<TestComponent> EHJGAANOHDB)
|
|
{
|
|
HashSet<TestComponent> hashSet = new HashSet<TestComponent>();
|
|
using (IEnumerator<TestComponent> enumerator = EHJGAANOHDB.GetEnumerator())
|
|
{
|
|
while (enumerator.MoveNext())
|
|
{
|
|
TestRunner.EHNHEICAOOM ehnheicaoom = new TestRunner.EHNHEICAOOM();
|
|
ehnheicaoom.FPEIPLCJBFI = enumerator.Current;
|
|
if (ehnheicaoom.FPEIPLCJBFI.DFAKOBDKJHF())
|
|
{
|
|
TestComponent[] array = ehnheicaoom.FPEIPLCJBFI.gameObject.GetComponentsInChildren(typeof(TestComponent), false).Where(new Func<Component, bool>(ehnheicaoom.CACOMKEAKLI)).Cast<TestComponent>()
|
|
.ToArray<TestComponent>();
|
|
TestComponent[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i += 0)
|
|
{
|
|
TestComponent testComponent = array2[i];
|
|
if (!testComponent.IsTestGroup())
|
|
{
|
|
hashSet.Add(testComponent);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
hashSet.Add(ehnheicaoom.FPEIPLCJBFI);
|
|
}
|
|
}
|
|
}
|
|
return hashSet;
|
|
}
|
|
|
|
// Token: 0x0602A158 RID: 172376 RVA: 0x00BAE9B8 File Offset: 0x00BACBB8
|
|
public IEnumerator StateMachine()
|
|
{
|
|
this.TestRunnerCallback.DECIPPJGMIM(Application.platform.ToString(), this.m_TestComponents);
|
|
while (this.m_TestsProvider.JNICNKCMEDO() || !(this.currentTest == null))
|
|
{
|
|
if (this.currentTest == null)
|
|
{
|
|
this.LDFHPKLJDMG();
|
|
}
|
|
if (this.currentTest != null)
|
|
{
|
|
if (this.m_TestState == TestRunner.AKNPMGOOCKE.Running)
|
|
{
|
|
if (this.currentTest.ShouldSucceedOnAssertions())
|
|
{
|
|
IEnumerable<AssertionComponent> componentsInChildren = this.currentTest.gameObject.GetComponentsInChildren<AssertionComponent>();
|
|
if (TestRunner.HIMBNPJFAJO.DINNJGHCFHI == null)
|
|
{
|
|
TestRunner.HIMBNPJFAJO.DINNJGHCFHI = new Func<AssertionComponent, bool>(TestRunner.HIMBNPJFAJO.OJKNBNGGBEC);
|
|
}
|
|
AssertionComponent[] array = componentsInChildren.Where(TestRunner.HIMBNPJFAJO.DINNJGHCFHI).ToArray<AssertionComponent>();
|
|
if (array.Any<AssertionComponent>())
|
|
{
|
|
IEnumerable<AssertionComponent> enumerable = array;
|
|
if (TestRunner.HIMBNPJFAJO.GILODIKMIAJ == null)
|
|
{
|
|
TestRunner.HIMBNPJFAJO.GILODIKMIAJ = new Func<AssertionComponent, bool>(TestRunner.HIMBNPJFAJO.JAFGLCBFOHM);
|
|
}
|
|
if (enumerable.All(TestRunner.HIMBNPJFAJO.GILODIKMIAJ))
|
|
{
|
|
GLGFBJOHGBE.HKBKKNKPPPK(this.currentTest.gameObject);
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Success;
|
|
}
|
|
}
|
|
}
|
|
if (this.currentTest != null && (double)Time.time > this.m_StartTime + this.currentTest.GetTimeout())
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Timeout;
|
|
}
|
|
}
|
|
switch (this.m_TestState)
|
|
{
|
|
case TestRunner.AKNPMGOOCKE.Success:
|
|
this.HPKCPIECPGP("IntegrationTest Finished");
|
|
this.BEMGFLJJMJO(TestResult.PNMKLGHOOBL.Success);
|
|
break;
|
|
case TestRunner.AKNPMGOOCKE.Failure:
|
|
this.HPKCPIECPGP("IntegrationTest Failed");
|
|
this.BEMGFLJJMJO(TestResult.PNMKLGHOOBL.Failed);
|
|
break;
|
|
case TestRunner.AKNPMGOOCKE.Exception:
|
|
this.HPKCPIECPGP("IntegrationTest Failed with exception");
|
|
this.BEMGFLJJMJO(TestResult.PNMKLGHOOBL.FailedException);
|
|
break;
|
|
case TestRunner.AKNPMGOOCKE.Timeout:
|
|
this.HPKCPIECPGP("IntegrationTest Timeout");
|
|
this.BEMGFLJJMJO(TestResult.PNMKLGHOOBL.Timeout);
|
|
break;
|
|
case TestRunner.AKNPMGOOCKE.Ignored:
|
|
this.HPKCPIECPGP("IntegrationTest Ignored");
|
|
this.BEMGFLJJMJO(TestResult.PNMKLGHOOBL.Ignored);
|
|
break;
|
|
}
|
|
}
|
|
yield return null;
|
|
}
|
|
this.OPAACDDIAAM();
|
|
yield break;
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x0602A159 RID: 172377 RVA: 0x00BAE9D4 File Offset: 0x00BACBD4
|
|
public void EGKGBDDMDDA()
|
|
{
|
|
if (this.isInitializedByRunner)
|
|
{
|
|
return;
|
|
}
|
|
if (this.m_Configurator.FPGKFOOFEON)
|
|
{
|
|
GJBDOJLMCBD gjbdojlmcbd = this.m_Configurator.KPNPFMLAFPL();
|
|
if (gjbdojlmcbd != null)
|
|
{
|
|
this.TestRunnerCallback.HMJIFAPGFEK(gjbdojlmcbd);
|
|
}
|
|
}
|
|
TestComponent.LJGMAODPIHL();
|
|
IEnumerable<Type> enumerable = TestComponent.GJDJJLIJJDA(SceneManager.GetActiveScene().name);
|
|
foreach (Type type in enumerable)
|
|
{
|
|
TestComponent.PAEBGMMMOIL(type);
|
|
}
|
|
List<TestComponent> list = TestComponent.LIJPJKHLPDL();
|
|
this.DFGIEIEAHDK(list, enumerable.Select(new Func<Type, string>(TestRunner.LFDBDMPMKEM)).ToList<string>());
|
|
}
|
|
|
|
// Token: 0x0602A15A RID: 172378 RVA: 0x00BAEAB8 File Offset: 0x00BACCB8
|
|
private void ODGOKIMJJPH(string FAPJJBMFHDJ, string FGHAJOJMAIC, LogType ANNBGHOPFBN)
|
|
{
|
|
if (!FAPJJBMFHDJ.StartsWith("IntegrationTest Started") && !FAPJJBMFHDJ.StartsWith("IntegrationTest Finished"))
|
|
{
|
|
string text = FAPJJBMFHDJ;
|
|
if (text.StartsWith("IntegrationTest"))
|
|
{
|
|
text = text.Substring("IntegrationTest".Length + 1);
|
|
}
|
|
if (this.currentTest != null && text.EndsWith("(" + this.currentTest.name + ')'))
|
|
{
|
|
text = text.Substring(0, text.LastIndexOf('('));
|
|
}
|
|
this.m_TestMessages = this.m_TestMessages + text + "\n";
|
|
}
|
|
switch (ANNBGHOPFBN)
|
|
{
|
|
case LogType.Error:
|
|
case LogType.Assert:
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Failure;
|
|
this.m_Stacktrace = FGHAJOJMAIC;
|
|
break;
|
|
case LogType.Log:
|
|
if (this.m_TestState == TestRunner.AKNPMGOOCKE.Running && FAPJJBMFHDJ.StartsWith("IntegrationTest Pass"))
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Success;
|
|
}
|
|
if (FAPJJBMFHDJ.StartsWith("IntegrationTest Fail"))
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Failure;
|
|
}
|
|
break;
|
|
case LogType.Exception:
|
|
{
|
|
string text2 = FAPJJBMFHDJ.Substring(0, FAPJJBMFHDJ.IndexOf(':'));
|
|
if (this.currentTest != null && this.currentTest.IsExceptionExpected(text2))
|
|
{
|
|
this.m_TestMessages = this.m_TestMessages + text2 + " was expected\n";
|
|
if (this.currentTest.ShouldSucceedOnException())
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Success;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Exception;
|
|
this.m_Stacktrace = FGHAJOJMAIC;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A15B RID: 172379 RVA: 0x00BAEC54 File Offset: 0x00BACE54
|
|
[CompilerGenerated]
|
|
private bool GMJPFGHOHKN(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.TestComponent == this.currentTest;
|
|
}
|
|
|
|
// Token: 0x0602A15C RID: 172380 RVA: 0x00BAEC68 File Offset: 0x00BACE68
|
|
private static bool JIDLFDBCHFC()
|
|
{
|
|
Type type = Type.GetType("UnityEditorInternal.InternalEditorUtility, UnityEditor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", false);
|
|
if (type == null)
|
|
{
|
|
return false;
|
|
}
|
|
PropertyInfo property = type.GetProperty("inBatchMode");
|
|
return (bool)property.GetValue(null, null);
|
|
}
|
|
|
|
// Token: 0x0602A15D RID: 172381 RVA: 0x00BAECA4 File Offset: 0x00BACEA4
|
|
public IEnumerator OJKOEEALJAE()
|
|
{
|
|
this.TestRunnerCallback.DECIPPJGMIM(Application.platform.ToString(), this.m_TestComponents);
|
|
while (this.m_TestsProvider.JNICNKCMEDO() || !(this.currentTest == null))
|
|
{
|
|
if (this.currentTest == null)
|
|
{
|
|
this.LDFHPKLJDMG();
|
|
}
|
|
if (this.currentTest != null)
|
|
{
|
|
if (this.m_TestState == TestRunner.AKNPMGOOCKE.Running)
|
|
{
|
|
if (this.currentTest.ShouldSucceedOnAssertions())
|
|
{
|
|
IEnumerable<AssertionComponent> componentsInChildren = this.currentTest.gameObject.GetComponentsInChildren<AssertionComponent>();
|
|
if (TestRunner.HIMBNPJFAJO.DINNJGHCFHI == null)
|
|
{
|
|
TestRunner.HIMBNPJFAJO.DINNJGHCFHI = new Func<AssertionComponent, bool>(TestRunner.HIMBNPJFAJO.OJKNBNGGBEC);
|
|
}
|
|
AssertionComponent[] array = componentsInChildren.Where(TestRunner.HIMBNPJFAJO.DINNJGHCFHI).ToArray<AssertionComponent>();
|
|
if (array.Any<AssertionComponent>())
|
|
{
|
|
IEnumerable<AssertionComponent> enumerable = array;
|
|
if (TestRunner.HIMBNPJFAJO.GILODIKMIAJ == null)
|
|
{
|
|
TestRunner.HIMBNPJFAJO.GILODIKMIAJ = new Func<AssertionComponent, bool>(TestRunner.HIMBNPJFAJO.JAFGLCBFOHM);
|
|
}
|
|
if (enumerable.All(TestRunner.HIMBNPJFAJO.GILODIKMIAJ))
|
|
{
|
|
GLGFBJOHGBE.HKBKKNKPPPK(this.currentTest.gameObject);
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Success;
|
|
}
|
|
}
|
|
}
|
|
if (this.currentTest != null && (double)Time.time > this.m_StartTime + this.currentTest.GetTimeout())
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Timeout;
|
|
}
|
|
}
|
|
switch (this.m_TestState)
|
|
{
|
|
case TestRunner.AKNPMGOOCKE.Success:
|
|
this.HPKCPIECPGP("IntegrationTest Finished");
|
|
this.BEMGFLJJMJO(TestResult.PNMKLGHOOBL.Success);
|
|
break;
|
|
case TestRunner.AKNPMGOOCKE.Failure:
|
|
this.HPKCPIECPGP("IntegrationTest Failed");
|
|
this.BEMGFLJJMJO(TestResult.PNMKLGHOOBL.Failed);
|
|
break;
|
|
case TestRunner.AKNPMGOOCKE.Exception:
|
|
this.HPKCPIECPGP("IntegrationTest Failed with exception");
|
|
this.BEMGFLJJMJO(TestResult.PNMKLGHOOBL.FailedException);
|
|
break;
|
|
case TestRunner.AKNPMGOOCKE.Timeout:
|
|
this.HPKCPIECPGP("IntegrationTest Timeout");
|
|
this.BEMGFLJJMJO(TestResult.PNMKLGHOOBL.Timeout);
|
|
break;
|
|
case TestRunner.AKNPMGOOCKE.Ignored:
|
|
this.HPKCPIECPGP("IntegrationTest Ignored");
|
|
this.BEMGFLJJMJO(TestResult.PNMKLGHOOBL.Ignored);
|
|
break;
|
|
}
|
|
}
|
|
yield return null;
|
|
}
|
|
this.OPAACDDIAAM();
|
|
yield break;
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x0602A15E RID: 172382 RVA: 0x00BAECC0 File Offset: 0x00BACEC0
|
|
private static bool NPDHIAKBBNJ(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.CLODFCFENCI();
|
|
}
|
|
|
|
// Token: 0x0602A15F RID: 172383 RVA: 0x00BAECC8 File Offset: 0x00BACEC8
|
|
[CompilerGenerated]
|
|
private static bool IBKOHFEIEBA(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.IsIgnored;
|
|
}
|
|
|
|
// Token: 0x0602A160 RID: 172384 RVA: 0x00BAECD0 File Offset: 0x00BACED0
|
|
private static GameObject EEDMFFPJDED()
|
|
{
|
|
GameObject gameObject = new GameObject("RpcOnCardPickup");
|
|
gameObject.AddComponent<TestRunner>();
|
|
Debug.Log("/");
|
|
return gameObject;
|
|
}
|
|
|
|
// Token: 0x0602A161 RID: 172385 RVA: 0x00BAECFC File Offset: 0x00BACEFC
|
|
private static TestResult KEAOOFIIIAA(TestComponent NCOHNOPAIOG)
|
|
{
|
|
return new TestResult(NCOHNOPAIOG);
|
|
}
|
|
|
|
// Token: 0x0602A162 RID: 172386 RVA: 0x00BAED04 File Offset: 0x00BACF04
|
|
private static string CAOJICLCKOG(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.EEPFMDKAKMC();
|
|
}
|
|
|
|
// Token: 0x0602A163 RID: 172387 RVA: 0x00BAED0C File Offset: 0x00BACF0C
|
|
[CompilerGenerated]
|
|
private static TestResult PNCAKNDGLDG(TestComponent NCOHNOPAIOG)
|
|
{
|
|
return new TestResult(NCOHNOPAIOG);
|
|
}
|
|
|
|
// Token: 0x0602A164 RID: 172388 RVA: 0x00BAED14 File Offset: 0x00BACF14
|
|
public void PKNLAJONJND()
|
|
{
|
|
TestRunner.k_ResultRenderer.NIIDCELGKKH();
|
|
}
|
|
|
|
// Token: 0x0602A165 RID: 172389 RVA: 0x00BAED20 File Offset: 0x00BACF20
|
|
private static string NNPPALIEGLA(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.JEJCMGALAAE();
|
|
}
|
|
|
|
// Token: 0x0602A166 RID: 172390 RVA: 0x00BAED28 File Offset: 0x00BACF28
|
|
private bool BHCBNOENAHC(TestResult CHBMCDHCJHE)
|
|
{
|
|
return TestComponent.NHILADJBGPJ(CHBMCDHCJHE.TestComponent, this.currentTest);
|
|
}
|
|
|
|
// Token: 0x0602A167 RID: 172391 RVA: 0x00BAED3C File Offset: 0x00BACF3C
|
|
[CompilerGenerated]
|
|
private static bool NDIGPAMAFEP(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.IsFailure;
|
|
}
|
|
|
|
// Token: 0x0602A168 RID: 172392 RVA: 0x00BAED44 File Offset: 0x00BACF44
|
|
private void LFNICEEECOC()
|
|
{
|
|
string text = string.Empty;
|
|
text = text + "Passed: " + this.m_ResultList.Count(new Func<TestResult, bool>(TestRunner.BBICGKNMCIH));
|
|
if (this.m_ResultList.Any(new Func<TestResult, bool>(TestRunner.NDIGPAMAFEP)))
|
|
{
|
|
text = text + " Failed: " + this.m_ResultList.Count(new Func<TestResult, bool>(TestRunner.PBNBKHFLKAK));
|
|
Debug.Log("Failed tests: " + string.Join(", ", this.m_ResultList.Where(new Func<TestResult, bool>(TestRunner.IEJFNCDCGOA)).Select(new Func<TestResult, string>(TestRunner.FKGACCICONJ)).ToArray<string>()));
|
|
}
|
|
if (this.m_ResultList.Any(new Func<TestResult, bool>(TestRunner.IBKOHFEIEBA)))
|
|
{
|
|
text = text + " Ignored: " + this.m_ResultList.Count(new Func<TestResult, bool>(TestRunner.HGGOAOBHAPL));
|
|
Debug.Log("Ignored tests: " + string.Join(", ", this.m_ResultList.Where(new Func<TestResult, bool>(TestRunner.LDOAAIBECCH)).Select(new Func<TestResult, string>(TestRunner.CIPKFDDKNML)).ToArray<string>()));
|
|
}
|
|
Debug.Log(text);
|
|
}
|
|
|
|
// Token: 0x0602A169 RID: 172393 RVA: 0x00BAEF34 File Offset: 0x00BAD134
|
|
private void HBBFCDGMMBC(string FAPJJBMFHDJ, string FGHAJOJMAIC, LogType ANNBGHOPFBN)
|
|
{
|
|
if (!FAPJJBMFHDJ.StartsWith("2") && !FAPJJBMFHDJ.StartsWith("oncompletetarget"))
|
|
{
|
|
string text = FAPJJBMFHDJ;
|
|
if (text.StartsWith("_DetailTex"))
|
|
{
|
|
text = text.Substring("type".Length + 0);
|
|
}
|
|
if (this.currentTest != null && text.EndsWith("Room saved!" + this.currentTest.name + (char)(-94)))
|
|
{
|
|
text = text.Substring(1, text.LastIndexOf('\u001c'));
|
|
}
|
|
this.m_TestMessages = this.m_TestMessages + text + "Room Restore Failed";
|
|
}
|
|
switch (ANNBGHOPFBN)
|
|
{
|
|
case LogType.Error:
|
|
case LogType.Assert:
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Ignored;
|
|
this.m_Stacktrace = FGHAJOJMAIC;
|
|
break;
|
|
case LogType.Log:
|
|
if (this.m_TestState == TestRunner.AKNPMGOOCKE.Running && FAPJJBMFHDJ.StartsWith("amount"))
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Success;
|
|
}
|
|
if (FAPJJBMFHDJ.StartsWith("max"))
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Running;
|
|
}
|
|
break;
|
|
case LogType.Exception:
|
|
{
|
|
string text2 = FAPJJBMFHDJ.Substring(0, FAPJJBMFHDJ.IndexOf(','));
|
|
if (this.currentTest != null && this.currentTest.JBJGHMPEEKI(text2))
|
|
{
|
|
this.m_TestMessages = this.m_TestMessages + text2 + "main_root";
|
|
if (this.currentTest.ShouldSucceedOnException())
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Running;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Timeout;
|
|
this.m_Stacktrace = FGHAJOJMAIC;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A16A RID: 172394 RVA: 0x00BAF0D0 File Offset: 0x00BAD2D0
|
|
private static bool GOGKMAPEDGD(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.AKOGHIHACFE();
|
|
}
|
|
|
|
// Token: 0x0602A16B RID: 172395 RVA: 0x00BAF0D8 File Offset: 0x00BAD2D8
|
|
public void LHMGNEDHIHI()
|
|
{
|
|
if (this.m_ReadyToRun && Time.frameCount > 0)
|
|
{
|
|
this.m_ReadyToRun = true;
|
|
base.StartCoroutine("+join:");
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A16C RID: 172396 RVA: 0x00BAF104 File Offset: 0x00BAD304
|
|
private void HPKCPIECPGP(string NFAFJOMABOK)
|
|
{
|
|
if (this.currentTest != null)
|
|
{
|
|
Debug.Log(NFAFJOMABOK + " (" + this.currentTest.GDIECAFDIMC + ")", this.currentTest.gameObject);
|
|
}
|
|
else
|
|
{
|
|
Debug.Log(NFAFJOMABOK);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A16D RID: 172397 RVA: 0x00BAF158 File Offset: 0x00BAD358
|
|
public void OnGUI()
|
|
{
|
|
TestRunner.k_ResultRenderer.ABDJLPEBLPC();
|
|
}
|
|
|
|
// Token: 0x0602A16E RID: 172398 RVA: 0x00BAF164 File Offset: 0x00BAD364
|
|
private static GameObject EKLJHDBBEDJ()
|
|
{
|
|
GameObject gameObject = new GameObject("{0}\t is: {1}");
|
|
gameObject.AddComponent<TestRunner>();
|
|
Debug.Log("AO");
|
|
return gameObject;
|
|
}
|
|
|
|
// Token: 0x0602A16F RID: 172399 RVA: 0x00BAF190 File Offset: 0x00BAD390
|
|
private static CLDOCMHIFPN NIKHMOEEAOC(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.TestComponent;
|
|
}
|
|
|
|
// Token: 0x0602A170 RID: 172400 RVA: 0x00BAF198 File Offset: 0x00BAD398
|
|
private static bool FPDNMOLPKPK(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.JBLFLAIMPCM();
|
|
}
|
|
|
|
// Token: 0x0602A171 RID: 172401 RVA: 0x00BAF1A0 File Offset: 0x00BAD3A0
|
|
private static string APLCPLDCEAK(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.FJMILIEMNCO();
|
|
}
|
|
|
|
// Token: 0x0602A172 RID: 172402 RVA: 0x00BAF1A8 File Offset: 0x00BAD3A8
|
|
private static bool EPLNDFGHBOF(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.IsIgnored;
|
|
}
|
|
|
|
// Token: 0x0602A173 RID: 172403 RVA: 0x00BAF1B0 File Offset: 0x00BAD3B0
|
|
private void PPHMPCPFJCG()
|
|
{
|
|
this.LFNICEEECOC();
|
|
this.TestRunnerCallback.FNBHKMCGJPO(this.m_ResultList);
|
|
this.BFOMNEBCPIK();
|
|
}
|
|
|
|
// Token: 0x0602A174 RID: 172404 RVA: 0x00BAF1D0 File Offset: 0x00BAD3D0
|
|
[CompilerGenerated]
|
|
private static bool BBICGKNMCIH(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.IsSuccess;
|
|
}
|
|
|
|
// Token: 0x0602A175 RID: 172405 RVA: 0x00BAF1D8 File Offset: 0x00BAD3D8
|
|
private void IDLBFJCAODO()
|
|
{
|
|
this.LFNICEEECOC();
|
|
this.TestRunnerCallback.FAPNCJKNCHE(this.m_ResultList);
|
|
this.CFNCIIIDLHO();
|
|
}
|
|
|
|
// Token: 0x0602A176 RID: 172406 RVA: 0x00BAF1F8 File Offset: 0x00BAD3F8
|
|
private static bool BMDLPAOLLMM(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.IMHBFPMMNFD();
|
|
}
|
|
|
|
// Token: 0x0602A178 RID: 172408 RVA: 0x00BAF220 File Offset: 0x00BAD420
|
|
[CompilerGenerated]
|
|
private static string LFDBDMPMKEM(Type ANNBGHOPFBN)
|
|
{
|
|
return ANNBGHOPFBN.AssemblyQualifiedName;
|
|
}
|
|
|
|
// Token: 0x0602A179 RID: 172409 RVA: 0x00BAF228 File Offset: 0x00BAD428
|
|
public static TestRunner GetTestRunner()
|
|
{
|
|
TestRunner testRunner = null;
|
|
global::UnityEngine.Object[] array = Resources.FindObjectsOfTypeAll(typeof(TestRunner));
|
|
if (array.Count<global::UnityEngine.Object>() > 1)
|
|
{
|
|
foreach (global::UnityEngine.Object @object in array)
|
|
{
|
|
global::UnityEngine.Object.DestroyImmediate(((TestRunner)@object).gameObject);
|
|
}
|
|
}
|
|
else if (!array.Any<global::UnityEngine.Object>())
|
|
{
|
|
testRunner = TestRunner.EFJCMOPEMKJ().GetComponent<TestRunner>();
|
|
}
|
|
else
|
|
{
|
|
testRunner = array.Single<global::UnityEngine.Object>() as TestRunner;
|
|
}
|
|
return testRunner;
|
|
}
|
|
|
|
// Token: 0x0602A17A RID: 172410 RVA: 0x00BAF2B0 File Offset: 0x00BAD4B0
|
|
public void DFGIEIEAHDK(List<TestComponent> EHJGAANOHDB, List<string> BEGHIHAOFOO)
|
|
{
|
|
Application.logMessageReceived += this.ODGOKIMJJPH;
|
|
foreach (string text in BEGHIHAOFOO)
|
|
{
|
|
Type type = Type.GetType(text);
|
|
if (type != null)
|
|
{
|
|
MonoBehaviour[] array = Resources.FindObjectsOfTypeAll(type) as MonoBehaviour[];
|
|
if (array.Length == 0)
|
|
{
|
|
Debug.LogWarning(type + "{0}v1/objectives");
|
|
}
|
|
else
|
|
{
|
|
if (array.Length > 0)
|
|
{
|
|
Debug.LogWarning("CSharpSocket: UDP, Unity3d." + text);
|
|
}
|
|
EHJGAANOHDB.Add(array.First<MonoBehaviour>().GetComponent<TestComponent>());
|
|
}
|
|
}
|
|
}
|
|
this.m_TestComponents = TestRunner.AFJBHFBCAPO(EHJGAANOHDB).ToList<TestComponent>();
|
|
this.m_ResultList = this.m_TestComponents.Select(new Func<TestComponent, TestResult>(TestRunner.CNDIHHBCJND)).ToList<TestResult>();
|
|
this.m_TestsProvider = new LKAPMJEECNN(this.m_ResultList.Select(new Func<TestResult, CLDOCMHIFPN>(TestRunner.KFEEBCEMOED)));
|
|
this.m_ReadyToRun = false;
|
|
}
|
|
|
|
// Token: 0x0602A17B RID: 172411 RVA: 0x00BAF3F4 File Offset: 0x00BAD5F4
|
|
private static IEnumerable<TestComponent> ONIPMHKEJEJ(IEnumerable<TestComponent> EHJGAANOHDB)
|
|
{
|
|
HashSet<TestComponent> hashSet = new HashSet<TestComponent>();
|
|
using (IEnumerator<TestComponent> enumerator = EHJGAANOHDB.GetEnumerator())
|
|
{
|
|
while (enumerator.MoveNext())
|
|
{
|
|
TestRunner.EHNHEICAOOM ehnheicaoom = new TestRunner.EHNHEICAOOM();
|
|
ehnheicaoom.FPEIPLCJBFI = enumerator.Current;
|
|
if (ehnheicaoom.FPEIPLCJBFI.IBCMHNJEMOC())
|
|
{
|
|
TestComponent[] array = ehnheicaoom.FPEIPLCJBFI.gameObject.GetComponentsInChildren(typeof(TestComponent), true).Where(new Func<Component, bool>(ehnheicaoom.CMJAJDPCFJA)).Cast<TestComponent>()
|
|
.ToArray<TestComponent>();
|
|
foreach (TestComponent testComponent in array)
|
|
{
|
|
if (!testComponent.IEJLHNJAGAC())
|
|
{
|
|
hashSet.Add(testComponent);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
hashSet.Add(ehnheicaoom.FPEIPLCJBFI);
|
|
}
|
|
}
|
|
}
|
|
return hashSet;
|
|
}
|
|
|
|
// Token: 0x0602A17C RID: 172412 RVA: 0x00BAF4E4 File Offset: 0x00BAD6E4
|
|
private void BEMGFLJJMJO(TestResult.PNMKLGHOOBL CHBMCDHCJHE)
|
|
{
|
|
this.m_TestsProvider.BEMGFLJJMJO(this.currentTest);
|
|
TestResult testResult = this.m_ResultList.Single(new Func<TestResult, bool>(this.OPBHGFMDFOL));
|
|
testResult.resultType = CHBMCDHCJHE;
|
|
testResult.duration = (double)Time.time - this.m_StartTime;
|
|
testResult.messages = this.m_TestMessages;
|
|
testResult.stacktrace = this.m_Stacktrace;
|
|
this.TestRunnerCallback.HECBJNJCLLD(testResult);
|
|
this.currentTest = null;
|
|
if (!testResult.IsSuccess && testResult.Executed && !testResult.IsIgnored)
|
|
{
|
|
TestRunner.k_ResultRenderer.FINCMFMLMPK(SceneManager.GetActiveScene().name, testResult);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A17D RID: 172413 RVA: 0x00BAF598 File Offset: 0x00BAD798
|
|
public void Update()
|
|
{
|
|
if (this.m_ReadyToRun && Time.frameCount > 1)
|
|
{
|
|
this.m_ReadyToRun = false;
|
|
base.StartCoroutine("StateMachine");
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A17E RID: 172414 RVA: 0x00BAF5C4 File Offset: 0x00BAD7C4
|
|
private static string LHDJOFHAIJM(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.FJMILIEMNCO();
|
|
}
|
|
|
|
// Token: 0x0602A17F RID: 172415 RVA: 0x00BAF5CC File Offset: 0x00BAD7CC
|
|
[CompilerGenerated]
|
|
private static bool PBNBKHFLKAK(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.IsFailure;
|
|
}
|
|
|
|
// Token: 0x0602A180 RID: 172416 RVA: 0x00BAF5D4 File Offset: 0x00BAD7D4
|
|
[CompilerGenerated]
|
|
private static bool LDOAAIBECCH(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.IsIgnored;
|
|
}
|
|
|
|
// Token: 0x0602A181 RID: 172417 RVA: 0x00BAF5DC File Offset: 0x00BAD7DC
|
|
public void InitRunner(List<TestComponent> EHJGAANOHDB, List<string> BEGHIHAOFOO)
|
|
{
|
|
Application.logMessageReceived += this.ODGOKIMJJPH;
|
|
foreach (string text in BEGHIHAOFOO)
|
|
{
|
|
Type type = Type.GetType(text);
|
|
if (type != null)
|
|
{
|
|
MonoBehaviour[] array = Resources.FindObjectsOfTypeAll(type) as MonoBehaviour[];
|
|
if (array.Length == 0)
|
|
{
|
|
Debug.LogWarning(type + " not found. Skipping.");
|
|
}
|
|
else
|
|
{
|
|
if (array.Length > 1)
|
|
{
|
|
Debug.LogWarning("Multiple GameObjects refer to " + text);
|
|
}
|
|
EHJGAANOHDB.Add(array.First<MonoBehaviour>().GetComponent<TestComponent>());
|
|
}
|
|
}
|
|
}
|
|
this.m_TestComponents = TestRunner.AFJBHFBCAPO(EHJGAANOHDB).ToList<TestComponent>();
|
|
this.m_ResultList = this.m_TestComponents.Select(new Func<TestComponent, TestResult>(TestRunner.PNCAKNDGLDG)).ToList<TestResult>();
|
|
this.m_TestsProvider = new LKAPMJEECNN(this.m_ResultList.Select(new Func<TestResult, CLDOCMHIFPN>(TestRunner.KFEEBCEMOED)));
|
|
this.m_ReadyToRun = true;
|
|
}
|
|
|
|
// Token: 0x0602A182 RID: 172418 RVA: 0x00BAF720 File Offset: 0x00BAD920
|
|
private bool BEANCCAFEKL(TestResult CHBMCDHCJHE)
|
|
{
|
|
return TestComponent.EMCHEBKOEJD(CHBMCDHCJHE.TestComponent, this.currentTest);
|
|
}
|
|
|
|
// Token: 0x0602A183 RID: 172419 RVA: 0x00BAF734 File Offset: 0x00BAD934
|
|
private static TestResult COELDGIMBLE(TestComponent NCOHNOPAIOG)
|
|
{
|
|
return new TestResult(NCOHNOPAIOG);
|
|
}
|
|
|
|
// Token: 0x0602A184 RID: 172420 RVA: 0x00BAF73C File Offset: 0x00BAD93C
|
|
public void KCMNJEOIEHL()
|
|
{
|
|
TestRunner.k_ResultRenderer.PBOGABNHKFM();
|
|
}
|
|
|
|
// Token: 0x0602A185 RID: 172421 RVA: 0x00BAF748 File Offset: 0x00BAD948
|
|
[CompilerGenerated]
|
|
private static string CIPKFDDKNML(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.Name;
|
|
}
|
|
|
|
// Token: 0x0602A186 RID: 172422 RVA: 0x00BAF750 File Offset: 0x00BAD950
|
|
public void HAFLIECFKGF()
|
|
{
|
|
if (this.m_ReadyToRun && Time.frameCount > 1)
|
|
{
|
|
this.m_ReadyToRun = false;
|
|
base.StartCoroutine("scale");
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A187 RID: 172423 RVA: 0x00BAF77C File Offset: 0x00BAD97C
|
|
private void FJHDAJODAFO(TestResult.PNMKLGHOOBL CHBMCDHCJHE)
|
|
{
|
|
this.m_TestsProvider.PAGDAFOOAFA(this.currentTest);
|
|
TestResult testResult = this.m_ResultList.Single(new Func<TestResult, bool>(this.OPBHGFMDFOL));
|
|
testResult.resultType = CHBMCDHCJHE;
|
|
testResult.duration = (double)Time.time - this.m_StartTime;
|
|
testResult.messages = this.m_TestMessages;
|
|
testResult.stacktrace = this.m_Stacktrace;
|
|
this.TestRunnerCallback.AINJJNMLAKA(testResult);
|
|
this.currentTest = null;
|
|
if (!testResult.IsSuccess && testResult.HDJJGKLIFAK() && !testResult.IMHBFPMMNFD())
|
|
{
|
|
TestRunner.k_ResultRenderer.GKBHPMODBAI(SceneManager.GetActiveScene().name, testResult);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A188 RID: 172424 RVA: 0x00BAF830 File Offset: 0x00BADA30
|
|
public static TestRunner KEEBHAIPCKL()
|
|
{
|
|
TestRunner testRunner = null;
|
|
global::UnityEngine.Object[] array = Resources.FindObjectsOfTypeAll(typeof(TestRunner));
|
|
if (array.Count<global::UnityEngine.Object>() > 1)
|
|
{
|
|
foreach (global::UnityEngine.Object @object in array)
|
|
{
|
|
global::UnityEngine.Object.DestroyImmediate(((TestRunner)@object).gameObject);
|
|
}
|
|
}
|
|
else if (!array.Any<global::UnityEngine.Object>())
|
|
{
|
|
testRunner = TestRunner.JGGBNIDJIBC().GetComponent<TestRunner>();
|
|
}
|
|
else
|
|
{
|
|
testRunner = array.Single<global::UnityEngine.Object>() as TestRunner;
|
|
}
|
|
return testRunner;
|
|
}
|
|
|
|
// Token: 0x0602A189 RID: 172425 RVA: 0x00BAF8B8 File Offset: 0x00BADAB8
|
|
private bool HBNCJIODINO(TestResult CHBMCDHCJHE)
|
|
{
|
|
return TestComponent.NHILADJBGPJ(CHBMCDHCJHE.TestComponent, this.currentTest);
|
|
}
|
|
|
|
// Token: 0x0602A18A RID: 172426 RVA: 0x00BAF8CC File Offset: 0x00BADACC
|
|
public void ELBDAIAMMGB()
|
|
{
|
|
this.m_Configurator = new JHOJAMLKEGD();
|
|
if (this.isInitializedByRunner)
|
|
{
|
|
return;
|
|
}
|
|
TestComponent.LLEKCFHPALB();
|
|
}
|
|
|
|
// Token: 0x0602A18B RID: 172427 RVA: 0x00BAF8EC File Offset: 0x00BADAEC
|
|
private void ABOBGLMCEFK()
|
|
{
|
|
this.m_TestMessages = string.Empty;
|
|
this.m_Stacktrace = string.Empty;
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Running;
|
|
this.m_StartTime = (double)Time.time;
|
|
this.currentTest = this.m_TestsProvider.HFJMODMJPEF() as TestComponent;
|
|
TestResult testResult = this.m_ResultList.Single(new Func<TestResult, bool>(this.BHCBNOENAHC));
|
|
if (this.currentTest != null && this.currentTest.IsExludedOnThisPlatform())
|
|
{
|
|
this.m_TestState = (TestRunner.AKNPMGOOCKE)7;
|
|
Debug.Log(this.currentTest.gameObject.name + "Vel: ({0:F2}, {1:F2}, {2:F2})\n");
|
|
}
|
|
if (this.currentTest != null && this.currentTest.NILEPENHONA() && (!this.isInitializedByRunner || this.m_ResultList.Count != 1))
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Ignored;
|
|
}
|
|
this.HPKCPIECPGP("gzip");
|
|
this.TestRunnerCallback.OMHIBIHJAHA(testResult);
|
|
}
|
|
|
|
// Token: 0x0602A18C RID: 172428 RVA: 0x00BAF9F4 File Offset: 0x00BADBF4
|
|
private static GameObject EFJCMOPEMKJ()
|
|
{
|
|
GameObject gameObject = new GameObject("TestRunner");
|
|
gameObject.AddComponent<TestRunner>();
|
|
Debug.Log("Created Test Runner");
|
|
return gameObject;
|
|
}
|
|
|
|
// Token: 0x0602A18D RID: 172429 RVA: 0x00BAFA20 File Offset: 0x00BADC20
|
|
private static bool PJEJKJCPDBL(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.IMHBFPMMNFD();
|
|
}
|
|
|
|
// Token: 0x0602A18E RID: 172430 RVA: 0x00BAFA28 File Offset: 0x00BADC28
|
|
private static GameObject JGGBNIDJIBC()
|
|
{
|
|
GameObject gameObject = new GameObject("ExternalAppPath = ");
|
|
gameObject.AddComponent<TestRunner>();
|
|
Debug.Log("senderId");
|
|
return gameObject;
|
|
}
|
|
|
|
// Token: 0x0602A18F RID: 172431 RVA: 0x00BAFA54 File Offset: 0x00BADC54
|
|
public void Start()
|
|
{
|
|
if (this.isInitializedByRunner)
|
|
{
|
|
return;
|
|
}
|
|
if (this.m_Configurator.FPGKFOOFEON)
|
|
{
|
|
GJBDOJLMCBD gjbdojlmcbd = this.m_Configurator.APDMOEKFCNM();
|
|
if (gjbdojlmcbd != null)
|
|
{
|
|
this.TestRunnerCallback.OPJKMCEACMD(gjbdojlmcbd);
|
|
}
|
|
}
|
|
TestComponent.DestroyAllDynamicTests();
|
|
IEnumerable<Type> typesWithHelpAttribute = TestComponent.GetTypesWithHelpAttribute(SceneManager.GetActiveScene().name);
|
|
foreach (Type type in typesWithHelpAttribute)
|
|
{
|
|
TestComponent.CreateDynamicTest(type);
|
|
}
|
|
List<TestComponent> list = TestComponent.FindAllTestsOnScene();
|
|
this.InitRunner(list, typesWithHelpAttribute.Select(new Func<Type, string>(TestRunner.LFDBDMPMKEM)).ToList<string>());
|
|
}
|
|
|
|
// Token: 0x0602A190 RID: 172432 RVA: 0x00BAFB38 File Offset: 0x00BADD38
|
|
private void NIJGHIOKEPK(string FAPJJBMFHDJ, string FGHAJOJMAIC, LogType ANNBGHOPFBN)
|
|
{
|
|
if (!FAPJJBMFHDJ.StartsWith("2") && !FAPJJBMFHDJ.StartsWith("[PV] unsupported sample type: "))
|
|
{
|
|
string text = FAPJJBMFHDJ;
|
|
if (text.StartsWith("InputBuffer is null. "))
|
|
{
|
|
text = text.Substring("got OnMessage {0}".Length + 0);
|
|
}
|
|
if (this.currentTest != null && text.EndsWith("to" + this.currentTest.name + (char)(-62)))
|
|
{
|
|
text = text.Substring(1, text.LastIndexOf('a'));
|
|
}
|
|
this.m_TestMessages = this.m_TestMessages + text + "y";
|
|
}
|
|
switch (ANNBGHOPFBN)
|
|
{
|
|
case LogType.Error:
|
|
case LogType.Assert:
|
|
this.m_TestState = (TestRunner.AKNPMGOOCKE)8;
|
|
this.m_Stacktrace = FGHAJOJMAIC;
|
|
break;
|
|
case LogType.Log:
|
|
if (this.m_TestState == TestRunner.AKNPMGOOCKE.Running && FAPJJBMFHDJ.StartsWith("[PUNVoice]: LoadBalancingPeer broke!"))
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Success;
|
|
}
|
|
if (FAPJJBMFHDJ.StartsWith("EquipModeratorOutfits"))
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Success;
|
|
}
|
|
break;
|
|
case LogType.Exception:
|
|
{
|
|
string text2 = FAPJJBMFHDJ.Substring(1, FAPJJBMFHDJ.IndexOf((char)(-83)));
|
|
if (this.currentTest != null && this.currentTest.JBJGHMPEEKI(text2))
|
|
{
|
|
this.m_TestMessages = this.m_TestMessages + text2 + "RpcBroadcastSpawnPlayer";
|
|
if (this.currentTest.MKFOJCGBHPI())
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Running;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Success;
|
|
this.m_Stacktrace = FGHAJOJMAIC;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A191 RID: 172433 RVA: 0x00BAFCD4 File Offset: 0x00BADED4
|
|
private static string EMCOOMCDNJH(TestResult CHBMCDHCJHE)
|
|
{
|
|
return CHBMCDHCJHE.OOHIJCJDOLA();
|
|
}
|
|
|
|
// Token: 0x0602A193 RID: 172435 RVA: 0x00BAFCF0 File Offset: 0x00BADEF0
|
|
private static bool BIFCFEHDPCM(TestResult LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ.IsFailure;
|
|
}
|
|
|
|
// Token: 0x0602A194 RID: 172436 RVA: 0x00BAFCF8 File Offset: 0x00BADEF8
|
|
public void OnDestroy()
|
|
{
|
|
if (this.currentTest != null)
|
|
{
|
|
TestResult testResult = this.m_ResultList.Single(new Func<TestResult, bool>(this.GMJPFGHOHKN));
|
|
TestResult testResult2 = testResult;
|
|
testResult2.messages += "Test run interrupted (crash?)";
|
|
this.HPKCPIECPGP("IntegrationTest Run interrupted");
|
|
this.BEMGFLJJMJO(TestResult.PNMKLGHOOBL.Failed);
|
|
}
|
|
if (this.currentTest != null || (this.m_TestsProvider != null && this.m_TestsProvider.JNICNKCMEDO()))
|
|
{
|
|
List<CLDOCMHIFPN> list = this.m_TestsProvider.LPJPIKECKJF();
|
|
this.TestRunnerCallback.OLGJKLPDKEK(list.ToList<CLDOCMHIFPN>());
|
|
}
|
|
Application.logMessageReceived -= this.ODGOKIMJJPH;
|
|
}
|
|
|
|
// Token: 0x0602A195 RID: 172437 RVA: 0x00BAFDB0 File Offset: 0x00BADFB0
|
|
private void PAFCCIPBCKL()
|
|
{
|
|
string text = string.Empty;
|
|
text = text + "\\" + this.m_ResultList.Count(new Func<TestResult, bool>(TestRunner.BBICGKNMCIH));
|
|
if (this.m_ResultList.Any(new Func<TestResult, bool>(TestRunner.NDIGPAMAFEP)))
|
|
{
|
|
text = text + "LastVisitedAt" + this.m_ResultList.Count(new Func<TestResult, bool>(TestRunner.BIFCFEHDPCM));
|
|
Debug.Log("z" + string.Join("{0} / {1}", this.m_ResultList.Where(new Func<TestResult, bool>(TestRunner.IEJFNCDCGOA)).Select(new Func<TestResult, string>(TestRunner.FKGACCICONJ)).ToArray<string>()));
|
|
}
|
|
if (this.m_ResultList.Any(new Func<TestResult, bool>(TestRunner.BMDLPAOLLMM)))
|
|
{
|
|
text = text + "f1779b982f1c09aed3adb3cca563cbc2" + this.m_ResultList.Count(new Func<TestResult, bool>(TestRunner.HGGOAOBHAPL));
|
|
Debug.Log("CR" + string.Join("Description too short!", this.m_ResultList.Where(new Func<TestResult, bool>(TestRunner.PJEJKJCPDBL)).Select(new Func<TestResult, string>(TestRunner.NNPPALIEGLA)).ToArray<string>()));
|
|
}
|
|
Debug.Log(text);
|
|
}
|
|
|
|
// Token: 0x0602A196 RID: 172438 RVA: 0x00BAFFA0 File Offset: 0x00BAE1A0
|
|
public void PPFIBIEHPDP()
|
|
{
|
|
if (this.m_ReadyToRun && Time.frameCount > 0)
|
|
{
|
|
this.m_ReadyToRun = true;
|
|
base.StartCoroutine("Recycled:");
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A197 RID: 172439 RVA: 0x00BAFFCC File Offset: 0x00BAE1CC
|
|
private void LDFHPKLJDMG()
|
|
{
|
|
this.m_TestMessages = string.Empty;
|
|
this.m_Stacktrace = string.Empty;
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Running;
|
|
this.m_StartTime = (double)Time.time;
|
|
this.currentTest = this.m_TestsProvider.OGDFNDPLGOH() as TestComponent;
|
|
TestResult testResult = this.m_ResultList.Single(new Func<TestResult, bool>(this.LHHCGPPJLAC));
|
|
if (this.currentTest != null && this.currentTest.IsExludedOnThisPlatform())
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Ignored;
|
|
Debug.Log(this.currentTest.gameObject.name + " is excluded on this platform");
|
|
}
|
|
if (this.currentTest != null && this.currentTest.IsIgnored() && (!this.isInitializedByRunner || this.m_ResultList.Count != 1))
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Ignored;
|
|
}
|
|
this.HPKCPIECPGP("IntegrationTest Started");
|
|
this.TestRunnerCallback.MPDPDMDPGJE(testResult);
|
|
}
|
|
|
|
// Token: 0x0602A198 RID: 172440 RVA: 0x00BB00D4 File Offset: 0x00BAE2D4
|
|
public void HNDLFBBPEGL()
|
|
{
|
|
if (this.m_ReadyToRun && Time.frameCount > 1)
|
|
{
|
|
this.m_ReadyToRun = false;
|
|
base.StartCoroutine("{0} ({1})");
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602A199 RID: 172441 RVA: 0x00BB0100 File Offset: 0x00BAE300
|
|
public void LFEBHHFENDK()
|
|
{
|
|
if (this.currentTest != null)
|
|
{
|
|
TestResult testResult = this.m_ResultList.Single(new Func<TestResult, bool>(this.GMJPFGHOHKN));
|
|
TestResult testResult2 = testResult;
|
|
testResult2.messages += "TeleportBufferSizes does not have correct number of values.";
|
|
this.GGJJCCFNOBD("buffer error");
|
|
this.GGEPCHIODHJ(TestResult.PNMKLGHOOBL.Failed);
|
|
}
|
|
if (this.currentTest != null || (this.m_TestsProvider != null && this.m_TestsProvider.BGINDFGODIJ()))
|
|
{
|
|
List<CLDOCMHIFPN> list = this.m_TestsProvider.OAJCPFLHMIM();
|
|
this.TestRunnerCallback.HDLLMGPKNNF(list.ToList<CLDOCMHIFPN>());
|
|
}
|
|
Application.logMessageReceived -= this.ODGOKIMJJPH;
|
|
}
|
|
|
|
// Token: 0x0602A19A RID: 172442 RVA: 0x00BB01B8 File Offset: 0x00BAE3B8
|
|
private void OLJJEENHBGI()
|
|
{
|
|
this.m_TestMessages = string.Empty;
|
|
this.m_Stacktrace = string.Empty;
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Running;
|
|
this.m_StartTime = (double)Time.time;
|
|
this.currentTest = this.m_TestsProvider.KILGJHDEOFN() as TestComponent;
|
|
TestResult testResult = this.m_ResultList.Single(new Func<TestResult, bool>(this.LHHCGPPJLAC));
|
|
if (this.currentTest != null && this.currentTest.IsExludedOnThisPlatform())
|
|
{
|
|
this.m_TestState = (TestRunner.AKNPMGOOCKE)7;
|
|
Debug.Log(this.currentTest.gameObject.name + "Error creating room. If this persists, please contact the developers at support@againstgrav.com.");
|
|
}
|
|
if (this.currentTest != null && this.currentTest.DBBEHBAOBCC() && (!this.HDFCJKGAEKN() || this.m_ResultList.Count != 0))
|
|
{
|
|
this.m_TestState = TestRunner.AKNPMGOOCKE.Running;
|
|
}
|
|
this.HPKCPIECPGP(", o = ");
|
|
this.TestRunnerCallback.HDEFGIBALLA(testResult);
|
|
}
|
|
|
|
// Token: 0x0602A19B RID: 172443 RVA: 0x00BB02C0 File Offset: 0x00BAE4C0
|
|
public void Awake()
|
|
{
|
|
this.m_Configurator = new JHOJAMLKEGD();
|
|
if (this.isInitializedByRunner)
|
|
{
|
|
return;
|
|
}
|
|
TestComponent.DisableAllTests();
|
|
}
|
|
|
|
// Token: 0x04006758 RID: 26456
|
|
private static int TestSceneNumber = 0;
|
|
|
|
// Token: 0x04006759 RID: 26457
|
|
private static readonly LCGDDMJAANI k_ResultRenderer = new LCGDDMJAANI();
|
|
|
|
// Token: 0x0400675A RID: 26458
|
|
public TestComponent currentTest;
|
|
|
|
// Token: 0x0400675B RID: 26459
|
|
private List<TestResult> m_ResultList = new List<TestResult>();
|
|
|
|
// Token: 0x0400675C RID: 26460
|
|
private List<TestComponent> m_TestComponents;
|
|
|
|
// Token: 0x0400675D RID: 26461
|
|
private double m_StartTime;
|
|
|
|
// Token: 0x0400675E RID: 26462
|
|
private bool m_ReadyToRun;
|
|
|
|
// Token: 0x0400675F RID: 26463
|
|
private string m_TestMessages;
|
|
|
|
// Token: 0x04006760 RID: 26464
|
|
private string m_Stacktrace;
|
|
|
|
// Token: 0x04006761 RID: 26465
|
|
private TestRunner.AKNPMGOOCKE m_TestState;
|
|
|
|
// Token: 0x04006762 RID: 26466
|
|
private JHOJAMLKEGD m_Configurator;
|
|
|
|
// Token: 0x04006763 RID: 26467
|
|
public AHKCKJMHKFF TestRunnerCallback = new AHKCKJMHKFF();
|
|
|
|
// Token: 0x04006764 RID: 26468
|
|
private LKAPMJEECNN m_TestsProvider;
|
|
|
|
// Token: 0x04006765 RID: 26469
|
|
private const string k_Prefix = "IntegrationTest";
|
|
|
|
// Token: 0x04006766 RID: 26470
|
|
private const string k_StartedMessage = "IntegrationTest Started";
|
|
|
|
// Token: 0x04006767 RID: 26471
|
|
private const string k_FinishedMessage = "IntegrationTest Finished";
|
|
|
|
// Token: 0x04006768 RID: 26472
|
|
private const string k_TimeoutMessage = "IntegrationTest Timeout";
|
|
|
|
// Token: 0x04006769 RID: 26473
|
|
private const string k_FailedMessage = "IntegrationTest Failed";
|
|
|
|
// Token: 0x0400676A RID: 26474
|
|
private const string k_FailedExceptionMessage = "IntegrationTest Failed with exception";
|
|
|
|
// Token: 0x0400676B RID: 26475
|
|
private const string k_IgnoredMessage = "IntegrationTest Ignored";
|
|
|
|
// Token: 0x0400676C RID: 26476
|
|
private const string k_InterruptedMessage = "IntegrationTest Run interrupted";
|
|
|
|
// Token: 0x020012F3 RID: 4851
|
|
private enum AKNPMGOOCKE
|
|
{
|
|
// Token: 0x0400677A RID: 26490
|
|
Running,
|
|
// Token: 0x0400677B RID: 26491
|
|
Success,
|
|
// Token: 0x0400677C RID: 26492
|
|
Failure,
|
|
// Token: 0x0400677D RID: 26493
|
|
Exception,
|
|
// Token: 0x0400677E RID: 26494
|
|
Timeout,
|
|
// Token: 0x0400677F RID: 26495
|
|
Ignored
|
|
}
|
|
|
|
// Token: 0x020012F4 RID: 4852
|
|
[CompilerGenerated]
|
|
private sealed class EHNHEICAOOM
|
|
{
|
|
// Token: 0x0602A19C RID: 172444 RVA: 0x00BB02E0 File Offset: 0x00BAE4E0
|
|
internal bool BFLGOFKCKFP(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A19D RID: 172445 RVA: 0x00BB02F0 File Offset: 0x00BAE4F0
|
|
internal bool CACOMKEAKLI(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A19E RID: 172446 RVA: 0x00BB0300 File Offset: 0x00BAE500
|
|
internal bool ODJELHECHPO(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A19F RID: 172447 RVA: 0x00BB0310 File Offset: 0x00BAE510
|
|
internal bool GFKPDLLFOFH(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1A0 RID: 172448 RVA: 0x00BB0320 File Offset: 0x00BAE520
|
|
internal bool PBHHLBFFGJK(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1A1 RID: 172449 RVA: 0x00BB0330 File Offset: 0x00BAE530
|
|
internal bool KKJLKAONIOD(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1A2 RID: 172450 RVA: 0x00BB0340 File Offset: 0x00BAE540
|
|
internal bool HJNAKCHFFHA(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1A3 RID: 172451 RVA: 0x00BB0350 File Offset: 0x00BAE550
|
|
internal bool JGPKOJDHNBD(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1A4 RID: 172452 RVA: 0x00BB0360 File Offset: 0x00BAE560
|
|
internal bool MFOOGMKOCMN(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1A5 RID: 172453 RVA: 0x00BB0370 File Offset: 0x00BAE570
|
|
internal bool GOPMNHCPOJL(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1A6 RID: 172454 RVA: 0x00BB0380 File Offset: 0x00BAE580
|
|
internal bool NKONOOELLHD(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1A7 RID: 172455 RVA: 0x00BB0390 File Offset: 0x00BAE590
|
|
internal bool OGAJFHEKIED(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1A9 RID: 172457 RVA: 0x00BB03A8 File Offset: 0x00BAE5A8
|
|
internal bool PAKGFLGGCHF(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1AA RID: 172458 RVA: 0x00BB03B8 File Offset: 0x00BAE5B8
|
|
internal bool BMJOLOCMHKL(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1AB RID: 172459 RVA: 0x00BB03C8 File Offset: 0x00BAE5C8
|
|
internal bool CJKKEJANJOK(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1AC RID: 172460 RVA: 0x00BB03D8 File Offset: 0x00BAE5D8
|
|
internal bool CFCEJGGFGPD(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1AD RID: 172461 RVA: 0x00BB03E8 File Offset: 0x00BAE5E8
|
|
internal bool CNBODKBDHKF(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1AE RID: 172462 RVA: 0x00BB03F8 File Offset: 0x00BAE5F8
|
|
internal bool OJKNBNGGBEC(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1AF RID: 172463 RVA: 0x00BB0408 File Offset: 0x00BAE608
|
|
internal bool BPHNJPMKOEC(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1B0 RID: 172464 RVA: 0x00BB0418 File Offset: 0x00BAE618
|
|
internal bool FLOKJAEEFCE(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1B1 RID: 172465 RVA: 0x00BB0428 File Offset: 0x00BAE628
|
|
internal bool PGMGGNODPAN(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1B2 RID: 172466 RVA: 0x00BB0438 File Offset: 0x00BAE638
|
|
internal bool FLEEFDFKEIB(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1B3 RID: 172467 RVA: 0x00BB0448 File Offset: 0x00BAE648
|
|
internal bool CDOONHODPEF(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1B4 RID: 172468 RVA: 0x00BB0458 File Offset: 0x00BAE658
|
|
internal bool JCIGHBGDCMB(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1B5 RID: 172469 RVA: 0x00BB0468 File Offset: 0x00BAE668
|
|
internal bool ABODGDAKAEN(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1B6 RID: 172470 RVA: 0x00BB0478 File Offset: 0x00BAE678
|
|
internal bool KKLCFDPCKEP(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1B7 RID: 172471 RVA: 0x00BB0488 File Offset: 0x00BAE688
|
|
internal bool PIBLMAAJNEN(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1B8 RID: 172472 RVA: 0x00BB0498 File Offset: 0x00BAE698
|
|
internal bool BGEAIOGNJHN(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1B9 RID: 172473 RVA: 0x00BB04A8 File Offset: 0x00BAE6A8
|
|
internal bool ALGIBDFNIAN(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1BA RID: 172474 RVA: 0x00BB04B8 File Offset: 0x00BAE6B8
|
|
internal bool EDIBGMKACKD(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1BB RID: 172475 RVA: 0x00BB04C8 File Offset: 0x00BAE6C8
|
|
internal bool DPNFJMCMNGC(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1BC RID: 172476 RVA: 0x00BB04D8 File Offset: 0x00BAE6D8
|
|
internal bool DPIKDIPCJKM(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1BD RID: 172477 RVA: 0x00BB04E8 File Offset: 0x00BAE6E8
|
|
internal bool JAIDJPDOOOA(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1BE RID: 172478 RVA: 0x00BB04F8 File Offset: 0x00BAE6F8
|
|
internal bool CMJAJDPCFJA(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1BF RID: 172479 RVA: 0x00BB0508 File Offset: 0x00BAE708
|
|
internal bool KIIKBNCHANP(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x0602A1C0 RID: 172480 RVA: 0x00BB0518 File Offset: 0x00BAE718
|
|
internal bool NJLCHBPFKMD(Component LHMELEOKNBJ)
|
|
{
|
|
return LHMELEOKNBJ != this.FPEIPLCJBFI;
|
|
}
|
|
|
|
// Token: 0x04006780 RID: 26496
|
|
internal TestComponent FPEIPLCJBFI;
|
|
}
|
|
}
|
|
}
|