BananaHook.Specs.Infrastructure.describe_Patch.when_applying_in_a_non_writable_region C# (CSharp) Метод

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

private when_applying_in_a_non_writable_region ( ) : void
Результат void
        void when_applying_in_a_non_writable_region()
        {
            act = () => new MemoryPageProtector(new Win32Implementation(), buffer, (IntPtr)4)
                .ExecuteWithProtection(MemoryProtectionConstraints.PAGE_EXECUTE_READ, patch.Apply);

            it["should replace nevertheless"] = () => memory.ReadBytes(buffer, 4).should_be(replaceWith);
            it["should be applied"] = () => patch.IsApplied.should_be_true();
        }