public void Copy () { GacMembershipCondition gac = new GacMembershipCondition (); GacMembershipCondition copy = (GacMembershipCondition) gac.Copy (); Assert.AreEqual (gac, copy, "Equals"); Assert.IsFalse (Object.ReferenceEquals (gac, copy), "ReferenceEquals"); }
public static void GacMembershipConditionCallMethods() { GacMembershipCondition gmc = new GacMembershipCondition(); bool check = gmc.Check(new Evidence()); IMembershipCondition obj = gmc.Copy(); check = gmc.Equals(new object()); int hash = gmc.GetHashCode(); string str = gmc.ToString(); SecurityElement se = new SecurityElement(""); PolicyLevel pl = (PolicyLevel)Activator.CreateInstance(typeof(PolicyLevel), true); gmc.FromXml(se); gmc.FromXml(se, pl); se = gmc.ToXml(); se = gmc.ToXml(pl); }