Beispiel #1
0
        public void Test_Lazy_LoadFromConfigFile()
        {
            hookRepository.RemoveAll();
            hookRepository.LoadConfiguration();

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

            Assert.AreEqual(0, invokedHooks);
        }