public static void AllMembershipConditionCallMethods()
        {
            AllMembershipCondition amc = new AllMembershipCondition();
            bool check = amc.Check(new Evidence());
            IMembershipCondition imc = amc.Copy();

            check = amc.Equals(new object());
            int             hash = amc.GetHashCode();
            string          str  = amc.ToString();
            SecurityElement se   = new SecurityElement("");
            PolicyLevel     pl   = (PolicyLevel)FormatterServices.GetUninitializedObject(typeof(PolicyLevel));

            amc.FromXml(se);
            amc.FromXml(se, pl);
            se = amc.ToXml();
            se = amc.ToXml(pl);
        }
Exemplo n.º 2
0
        public static void AllMembershipConditionCallMethods()
        {
            AllMembershipCondition amc = new AllMembershipCondition();
            bool check = amc.Check(new Evidence());
            IMembershipCondition imc = amc.Copy();

            check = amc.Equals(new object());
            int             hash = amc.GetHashCode();
            string          str  = amc.ToString();
            SecurityElement se   = new SecurityElement("");
            PolicyLevel     pl   = (PolicyLevel)Activator.CreateInstance(typeof(PolicyLevel), true);

            amc.FromXml(se);
            amc.FromXml(se, pl);
            se = amc.ToXml();
            se = amc.ToXml(pl);
        }
Exemplo n.º 3
0
        public void ToString_()
        {
            AllMembershipCondition all = new AllMembershipCondition();

            Assert.AreEqual("All code", all.ToString());
        }