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