public void NewAssemblysAreAddedToTheTopOfList() { RecentlyUsedAssemblyList mruList = new RecentlyUsedAssemblyList(); mruList.Add(@"C:\Foo\Bar.dll", null); mruList.Add(@"C:\Baz\Biff.dll", null); RecentlyUsedAssembly firstAssembly = mruList.First(); Assert.Equal(@"C:\Baz\Biff.dll", firstAssembly.AssemblyFilename); }
public void ReAddingAlreadyPresentAssemblyReordersAssemblyToTopOfList() { RecentlyUsedAssemblyList mruList = new RecentlyUsedAssemblyList(); mruList.Add(@"C:\Foo\Bar.dll", null); mruList.Add(@"C:\Baz\Biff.dll", null); mruList.Add(@"C:\Foo\Bar.dll", null); RecentlyUsedAssembly firstAssembly = mruList.First(); Assert.Equal(2, mruList.Count()); Assert.Equal(@"C:\Foo\Bar.dll", firstAssembly.AssemblyFilename); }