BananaHook.Specs.Infrastructure.describe_MemoryPageProtector.when_an_exception_occurs_while_executing_with_modified_protection_flags C# (CSharp) Метод

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

        void when_an_exception_occurs_while_executing_with_modified_protection_flags()
        {
            act = expect<NotFiniteNumberException>(() =>
                _protector.ExecuteWithProtection(RequestedProtection, () => { throw new NotFiniteNumberException(); }));

            it["should have set and reset the protection flags"] = () => _protection.HasChanged.should_be_true();
        }