// Use this for initialization IEnumerator Start() { _Ledger = TestParent.GetComponent <Ledger>(); _Manager = TestParent.GetComponent <ManagerComponent <T> >(); yield return(null); _Ledger.Clear(); _GroupLedger.Clear(); _Tests.Add(new PostTest <T>(this)); _Tests.Add(new BaseTest <T>(this)); _Tests.Add(new FailTest <T>(this)); _Tests.Add(new FailTest02 <T>(this)); _Tests.Add(new FileStreamTest <T>(this)); _Tests.Add(new MemoryStreamTest <T>(this)); _Tests.Add(new SerializationTest <T>(this)); _Tests.Add(new SortingTest <T>(this)); _Tests.Add(new ProgressTest <T>(this)); _Tests.Add(new StatusCodeTest <T>(this)); _Tests.Add(new LedgerTest01 <T>(this)); _Tests.Add(new LedgerTest02 <T>(this)); _Tests.Add(new GroupLedgerTest01 <T>(this)); _Tests.Add(new GroupLedgerTest02 <T>(this)); _Tests.Add(new GroupLedgerTest03 <T>(this)); _Tests.Add(new GroupLedgerTest04 <T>(this)); _Tests.Add(new AbortTest <T>(this)); _Tests.Add(new DestroyTest01 <T>(this)); _Tests.Add(new DestroyTest02 <T>(this)); int succeedCount = 0; int failCount = 0; for (int i = 0; i < _Tests.Count; i++) { _Tests[i].OnTestFail += () => failCount++; _Tests[i].OnTestSucceed += () => succeedCount++; yield return(_Tests[i].DoTest()); } Debug.Log(failCount + "/" + _Tests.Count + " Failures"); Debug.Log(succeedCount + "/" + _Tests.Count + " Successes"); }