void when_the_target_is_unmanaged() { before = () => { _notifier = new ReflectionDetourNotifier(HookFactory, _subject.UnmanagedSleep); _notifier.Hook.Apply(); _notifier.DetourCalled += (s, e) => _eventArgs = e; }; act = () => _subject.UnmanagedSleep(0); it["should fire the event as expected"] = () => _eventArgs.should_not_be_null(); }