System.Tests.SecurityAttributeTests.SecurityRulesAttribute_Test C# (CSharp) Method

SecurityRulesAttribute_Test() private method

private SecurityRulesAttribute_Test ( ) : void
return void
        public static void SecurityRulesAttribute_Test()
        {
            var att = new SecurityRulesAttribute(SecurityRuleSet.Level1);
            Assert.Equal(SecurityRuleSet.Level1, att.RuleSet);
            Assert.Equal(false, att.SkipVerificationInFullTrust);

            att.SkipVerificationInFullTrust = true;
            Assert.Equal(true, att.SkipVerificationInFullTrust);
        }
    }