Esempio n. 1
0
 public void SignalRegistryClearTest()
 {
     Signals.Get <TestSignal>();
     Assert.IsTrue(Signals.Count == 1);
     Signals.Clear();
     Assert.IsTrue(Signals.Count == 0);
 }
Esempio n. 2
0
        public void SignalRegistryGetMethodsTest()
        {
            Signals.Clear();
            TestSignal testSignal0;
            TestSignal testSignal1;
            TestSignal testSignal2;

            testSignal0 = Signals.Get <TestSignal>();
            Signals.Get(out testSignal1);
            testSignal2 = (TestSignal)Signals.Get(typeof(TestSignal));

            Assert.IsTrue(testSignal0 == testSignal1);
            Assert.IsTrue(testSignal0 == testSignal2);
        }
Esempio n. 3
0
 public void Setup()
 {
     Signals.Clear();
 }
 private static void ResetSignalHub()
 {
     Debug.LogFormat("Resetting signal hub with {0} registered signals", Signals.Count);
     Signals.Clear();
 }
Esempio n. 5
0
 public void FinalTearDown()
 {
     Signals.Clear();
 }
Esempio n. 6
0
 public void InitialSetup()
 {
     callLog.Clear();
     Signals.Clear();
     Signals.Get(out signal);
 }
Esempio n. 7
0
 private static void ClearSignalHub()
 {
     Signals.Clear();
 }