public void RegisterStoreTests() { using (var registry = new RegisterStore()) { var test11 = new Test11(); var test112 = new Test11(); var test12 = new Test12(); var test21 = new Test21(); registry.Register <ITest1>(test11); registry.Register <ITest1>(test12); registry.Register <ITest1>(test112); registry.Register <ITest2>(test21); Assert.IsTrue(registry.GetRegistered <ITest1>().SequenceEqual(new ITest1[] { test11, test12, test112 })); Assert.IsTrue(registry.GetRegistered <ITest2>().SequenceEqual(new ITest2[] { test21 })); } }
public static int Main() { Test1.Test(); if (Utils.failures == 0) { Console.WriteLine("Test1 OK"); } Test2.Test(); if (Utils.failures == 0) { Console.WriteLine("Test2 OK"); } Test3.Test(); if (Utils.failures == 0) { Console.WriteLine("Test3 OK"); } Test4.Test(); if (Utils.failures == 0) { Console.WriteLine("Test4 OK"); } Test5.Test(); if (Utils.failures == 0) { Console.WriteLine("Test5 OK"); } Test6.Test(); if (Utils.failures == 0) { Console.WriteLine("Test6 OK"); } Test7.Test(); if (Utils.failures == 0) { Console.WriteLine("Test7 OK"); } Test8.Test(); if (Utils.failures == 0) { Console.WriteLine("Test8 OK"); } Test9.Test(); if (Utils.failures == 0) { Console.WriteLine("Test9 OK"); } Test10.Test(); if (Utils.failures == 0) { Console.WriteLine("Test10 OK"); } Test11.Test(); if (Utils.failures == 0) { Console.WriteLine("Test11 OK"); } Test12.Test(); if (Utils.failures == 0) { Console.WriteLine("Test12 OK"); } Test13.Test(); if (Utils.failures == 0) { Console.WriteLine("Test13 OK"); } Test14.Test(); if (Utils.failures == 0) { Console.WriteLine("Test14 OK"); } Test15.Test(); if (Utils.failures == 0) { Console.WriteLine("Test15 OK"); } Test16.Test(); if (Utils.failures == 0) { Console.WriteLine("Test16 OK"); } Test17.Test(); if (Utils.failures == 0) { Console.WriteLine("Test17 OK"); } Test18.Test(); if (Utils.failures == 0) { Console.WriteLine("Test18 OK"); } Test19.Test(); if (Utils.failures == 0) { Console.WriteLine("Test19 OK"); } Test20.Test(); if (Utils.failures == 0) { Console.WriteLine("Test20 OK"); } Test21.Test(); if (Utils.failures == 0) { Console.WriteLine("Test21 OK"); } Test22.Test(); if (Utils.failures == 0) { Console.WriteLine("Test22 OK"); } Test23.Test(); if (Utils.failures == 0) { Console.WriteLine("Test23 OK"); } if (Utils.failures > 0) { return(101); } else { Console.WriteLine("PASS"); return(100); } }
public Test3(Test11 test1) { this.Test1 = test1; }
// Start is called before the first frame update void Start() { bFlag = GameObject.Find("BulletManager"); bflag = bFlag.GetComponent <Test11>(); }