示例#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);
        }
示例#2
0
        public void Test_Lazy_InvokeAll()
        {
            int invokedCount = hookRepository.InvokeAll("CalledByTestWithDifferentValues", 2);

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

            Assert.AreEqual(0, invokedHooks);
        }