예제 #1
0
		public void GetByName ()
		{
			AssemblyCollection c = new AssemblyCollection ();
			AssemblyInfo a = new AssemblyInfo ("System.Web.dll");
			c.Add (a);
			Assert.AreEqual (a, c["System.Web.dll"]);
		}
예제 #2
0
		public void GetByNameFailure ()
		{
			AssemblyCollection c = new AssemblyCollection ();
			AssemblyInfo a = new AssemblyInfo ("System.Web.dll");
			c.Add (a);
			Assert.IsNull (c["System.Net.dll"]);
		}
예제 #3
0
		public void DuplicateKey ()
		{
			AssemblyCollection c = new AssemblyCollection ();
			c.Add (new AssemblyInfo ("System.Web.dll"));
			c.Add (new AssemblyInfo ("System.Web.dll"));
		}