public void Test_Lazy_LoadFromConfigFile() { hookRepository.RemoveAll(); hookRepository.LoadConfiguration(); Assert.AreEqual(2, hookRepository.Hooks.Length); }
public void Test_Standard_AddHookByAttribute() { hookRepository.RemoveAll(); Assert.AreEqual(0, hookRepository.Hooks.Length); }
public void Test_Lazy_RemoveAll() { hookRepository.RemoveAll(); Assert.AreEqual(0, hookRepository.Hooks.Length); }
public void Test_Lazy_RemoveHooks() { hookRepository.RemoveAll(); hookRepository.Add(new IHook[] { new LogHook(), new DiagnosticsHook() }); int invokedHooks = hookRepository.InvokeAll(); Assert.AreEqual(0, invokedHooks); }