Beispiel #1
0
        public void Test_Lazy_RemoveHooks()
        {
            hookRepository.RemoveAll();
            hookRepository.Add(new IHook[] { new LogHook(), new DiagnosticsHook() });
            int invokedHooks = hookRepository.InvokeAll();

            Assert.AreEqual(0, invokedHooks);
        }
Beispiel #2
0
        public void Test_Lazy_InvokeAll()
        {
            int invokedCount = hookRepository.InvokeAll("CalledByTestWithDifferentValues", 2);

            Assert.AreEqual(2, invokedCount);
        }
Beispiel #3
0
        public void Test_Standard_RemoveHooks()
        {
            int invokedHooks = hookRepository.InvokeAll();

            Assert.AreEqual(0, invokedHooks);
        }