public ProvideAppDomainEvidence ( System inputEvidence ) : System.Security.Policy.Evidence | ||
inputEvidence | System | |
return | System.Security.Policy.Evidence |
public virtual System.Security.Policy.Evidence ProvideAppDomainEvidence(System.Security.Policy.Evidence inputEvidence) { throw null; }
public virtual System.Security.Policy.Evidence ProvideAssemblyEvidence(System.Reflection.Assembly loadedAssembly, System.Security.Policy.Evidence inputEvidence) { throw null; }
HostSecurityManager::ProvideAppDomainEvidence ( |
public void ProvideAppDomainEvidence () { HostSecurityManager hsm = new HostSecurityManager (); Assert.IsNull (hsm.ProvideAppDomainEvidence (null), "null"); Evidence e = new Evidence (); Evidence result = hsm.ProvideAppDomainEvidence (e); Assert.IsNotNull (result, "empty"); Assert.AreEqual (0, result.Count, "Count-0"); e.AddHost (new Zone (SecurityZone.Untrusted)); result = hsm.ProvideAppDomainEvidence (e); Assert.AreEqual (1, result.Count, "Count-1"); }