New tests.
[mono.git] / mcs / class / corlib / System.Security.Policy / Evidence.cs
index 9e811c638e74985e1e9a9532cea08f55e93b531f..3a967d88aedc36d6d42d21667bfcb8026436c18c 100644 (file)
@@ -44,7 +44,7 @@ using Mono.Security.Authenticode;
 namespace System.Security.Policy {
 
        [Serializable]
-       [MonoTODO ("Fix serialization compatibility with MS.NET")]
+       [MonoTODO ("Serialization format not compatible with .NET")]
 #if NET_2_0
        [ComVisible (true)]
 #endif
@@ -221,7 +221,7 @@ namespace System.Security.Policy {
                                he = hostEvidenceList.GetEnumerator ();
                        IEnumerator ae = null;
                        if (assemblyEvidenceList != null)
-                               assemblyEvidenceList.GetEnumerator ();
+                               ae = assemblyEvidenceList.GetEnumerator ();
                        return new EvidenceEnumerator (he, ae);
                }
 
@@ -300,7 +300,7 @@ namespace System.Security.Policy {
                static internal Evidence GetDefaultHostEvidence (Assembly a) 
                {
                        Evidence e = new Evidence ();
-                       string aname = a.CodeBase;
+                       string aname = a.EscapedCodeBase;
 
                        // by default all assembly have the Zone, Url and Hash evidences
                        e.AddHost (Zone.CreateFromUrl (aname));