ToString() public method

public ToString ( ) : string
return string
Esempio n. 1
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);
 }
		public void ToString_ ()
		{
			AllMembershipCondition all = new AllMembershipCondition ();
			Assert.AreEqual ("All code", all.ToString ());
		}