public void Test_Lazy_RemoveHooks() { hookRepository.RemoveAll(); hookRepository.Add(new IHook[] { new LogHook(), new DiagnosticsHook() }); int invokedHooks = hookRepository.InvokeAll(); Assert.AreEqual(0, invokedHooks); }
public void Test_Lazy_InvokeAll() { int invokedCount = hookRepository.InvokeAll("CalledByTestWithDifferentValues", 2); Assert.AreEqual(2, invokedCount); }
public void Test_Standard_RemoveHooks() { int invokedHooks = hookRepository.InvokeAll(); Assert.AreEqual(0, invokedHooks); }