2005-05-16 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / Test / System.Security.Policy / GacTest.cs
index 5847f8e34141df4cf4f5c0da70571a153424a8ba..440240f3d6cb5c765bdc88247e7517a2310f23ed 100644 (file)
@@ -1,10 +1,10 @@
-//
-// GacTest.cs - NUnit Test Cases for Gac
+//\r
+// GacInstalledTest.cs - NUnit Test Cases for GacInstalled
 //
 // Author:
 //     Sebastien Pouliot  <sebastien@ximian.com>
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -36,29 +36,29 @@ using System.Security.Permissions;
 
 namespace MonoTests.System.Security.Policy {
 
-       [TestFixture]
-       public class GacTest {
+       [TestFixture]\r
+       public class GacInstalledTest {
 
                [Test]
                public void Constructor () 
-               {
-                       Gac gac = new Gac ();
+               {\r
+                       GacInstalled gac = new GacInstalled ();
                        Assert.IsNotNull (gac);
                }
 
                [Test]
                public void Copy ()
-               {
-                       Gac gac = new Gac ();
-                       Gac copy = (Gac) gac.Copy ();
+               {\r
+                       GacInstalled gac = new GacInstalled ();\r
+                       GacInstalled copy = (GacInstalled)gac.Copy ();
                        Assert.AreEqual (gac, copy, "Equals");
                        Assert.IsFalse (Object.ReferenceEquals (gac, copy), "ReferenceEquals");
                }
 
                [Test]
                public void CreateIdentityPermission ()
-               {
-                       Gac gac = new Gac ();
+               {\r
+                       GacInstalled gac = new GacInstalled ();
                        IPermission p = gac.CreateIdentityPermission (null);
                        Assert.IsTrue ((p is GacIdentityPermission), "GacIdentityPermission");
                        Assert.IsNotNull (p, "CreateIdentityPermission(null)");
@@ -68,26 +68,26 @@ namespace MonoTests.System.Security.Policy {
 
                [Test]
                public void Equals ()
-               {
-                       Gac gac = new Gac ();
-                       Assert.IsFalse (gac.Equals (null), "Equals(null)");
-                       Gac g2 = new Gac ();
+               {\r
+                       GacInstalled gac = new GacInstalled ();
+                       Assert.IsFalse (gac.Equals (null), "Equals(null)");\r
+                       GacInstalled g2 = new GacInstalled ();
                        Assert.IsTrue (gac.Equals (g2), "Equals(g2)");
                        Assert.IsTrue (g2.Equals (gac), "Equals(gac)");
                }
 
                [Test]
                public void GetHashCode_ ()
-               {
-                       Gac gac = new Gac ();
+               {\r
+                       GacInstalled gac = new GacInstalled ();
                        Assert.AreEqual (0, gac.GetHashCode ());
                }
 
                [Test]
                public void ToString_ ()
-               {
-                       Gac gac = new Gac ();
-                       Assert.IsTrue (gac.ToString ().StartsWith ("<System.Security.Policy.Gac version=\"1\"/>"));
+               {\r
+                       GacInstalled gac = new GacInstalled ();
+                       Assert.IsTrue (gac.ToString ().StartsWith ("<System.Security.Policy.GacInstalled version=\"1\"/>"));
                }
        }
 }