-//
-// 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
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)");
[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\"/>"));
}
}
}