Copy() 공개 메소드

public Copy ( ) : IMembershipCondition
리턴 IMembershipCondition
예제 #1
0
		public void Copy ()
		{
			GacMembershipCondition gac = new GacMembershipCondition ();
			GacMembershipCondition copy = (GacMembershipCondition) gac.Copy ();
			Assert.AreEqual (gac, copy, "Equals");
			Assert.IsFalse (Object.ReferenceEquals (gac, copy), "ReferenceEquals");
		}
예제 #2
0
 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);
 }