BananaHook.Specs.describe_ReflectionDetourNotifier.when_the_target_is_unmanaged C# (CSharp) Метод

when_the_target_is_unmanaged() приватный Метод

private when_the_target_is_unmanaged ( ) : void
Результат void
        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();
        }