Esempio n. 1
0
    public void NewProjectsAreAddedToTheTopOfList()
    {
        RecentlyUsedProjectList mruList = new RecentlyUsedProjectList();

        mruList.Add(@"C:\Foo\Bar.xunit");
        mruList.Add(@"C:\Baz\Biff.xunit");

        Assert.Equal(@"C:\Baz\Biff.xunit", mruList.First());
    }
    public void NewProjectsAreAddedToTheTopOfList()
    {
        RecentlyUsedProjectList mruList = new RecentlyUsedProjectList();

        mruList.Add(@"C:\Foo\Bar.xunit");
        mruList.Add(@"C:\Baz\Biff.xunit");

        Assert.Equal(@"C:\Baz\Biff.xunit", mruList.First());
    }
    public void AddedProjectIsInList()
    {
        RecentlyUsedProjectList mruList = new RecentlyUsedProjectList();

        mruList.Add(@"C:\Foo\Bar.xunit");

        string filename = Assert.Single(mruList);
        Assert.Equal(@"C:\Foo\Bar.xunit", filename);
    }
    public void AddingMoreThanMaximumNumberOfProjectsPushesOldestProjectOffTheList()
    {
        RecentlyUsedProjectList mruList = new RecentlyUsedProjectList(1);

        mruList.Add(@"C:\Foo\Bar.xunit");
        mruList.Add(@"C:\Baz\Biff.xunit");

        string filename = Assert.Single(mruList);
        Assert.Equal(@"C:\Baz\Biff.xunit", filename);
    }
Esempio n. 5
0
    public void AddedProjectIsInList()
    {
        RecentlyUsedProjectList mruList = new RecentlyUsedProjectList();

        mruList.Add(@"C:\Foo\Bar.xunit");

        string filename = Assert.Single(mruList);

        Assert.Equal(@"C:\Foo\Bar.xunit", filename);
    }
    public void ReAddingAlreadyPresentProjectReordersProjectToTopOfList()
    {
        RecentlyUsedProjectList mruList = new RecentlyUsedProjectList();

        mruList.Add(@"C:\Foo\Bar.xunit");
        mruList.Add(@"C:\Baz\Biff.xunit");
        mruList.Add(@"C:\Foo\Bar.xunit");

        Assert.Equal(2, mruList.Count());
        Assert.Equal(@"C:\Foo\Bar.xunit", mruList.First());
    }
Esempio n. 7
0
    public void AddingMoreThanMaximumNumberOfProjectsPushesOldestProjectOffTheList()
    {
        RecentlyUsedProjectList mruList = new RecentlyUsedProjectList(1);

        mruList.Add(@"C:\Foo\Bar.xunit");
        mruList.Add(@"C:\Baz\Biff.xunit");

        string filename = Assert.Single(mruList);

        Assert.Equal(@"C:\Baz\Biff.xunit", filename);
    }
Esempio n. 8
0
    public void ReAddingAlreadyPresentProjectReordersProjectToTopOfList()
    {
        RecentlyUsedProjectList mruList = new RecentlyUsedProjectList();

        mruList.Add(@"C:\Foo\Bar.xunit");
        mruList.Add(@"C:\Baz\Biff.xunit");
        mruList.Add(@"C:\Foo\Bar.xunit");

        Assert.Equal(2, mruList.Count());
        Assert.Equal(@"C:\Foo\Bar.xunit", mruList.First());
    }
Esempio n. 9
0
 public override void Before(MethodInfo methodUnderTest)
 {
     projects = RecentlyUsedProjectList.LoadProjectList();
     RecentlyUsedProjectList.ClearProjectList();
 }
Esempio n. 10
0
 public override void After(MethodInfo methodUnderTest)
 {
     RecentlyUsedProjectList.SaveProjectList(projects);
 }