Example #1
0
        public void Should_load_After_method_successfully()
        {
            var method = Reflection.GetMethod(typeof(ValidHooks), "After1");
            var hook   = new AfterHook(method);

            Assert.That(hook.Method, Is.EqualTo(method));
        }
Example #2
0
        public void Should_not_load_Before_method()
        {
            var method = Reflection.GetMethod(typeof(InvalidHooks), "Before1");
            var hook   = new AfterHook(method);

            Assert.That(hook, Is.Null);
        }