ToString() public method

public ToString ( ) : string
return string
Exemplo n.º 1
0
 public static void ApplicationDirectoryMembershipConditionCallMethods()
 {
     ApplicationDirectoryMembershipCondition admc = new ApplicationDirectoryMembershipCondition();
     bool check = admc.Check(new Evidence());
     IMembershipCondition obj = admc.Copy();
     check = admc.Equals(new object());
     int hash = admc.GetHashCode();
     string str = admc.ToString();
     SecurityElement se = new SecurityElement("");
     PolicyLevel pl = (PolicyLevel)Activator.CreateInstance(typeof(PolicyLevel), true);
     admc.FromXml(se);
     admc.FromXml(se, pl);
     se = admc.ToXml();
     se = admc.ToXml(pl);
 }
		public void ToString_ ()
		{
			ApplicationDirectoryMembershipCondition ad = new ApplicationDirectoryMembershipCondition ();
			Assert.AreEqual ("ApplicationDirectory", ad.ToString ());
		}