WorkspaceFor() 공개 메소드

public WorkspaceFor ( string workspaceName ) : WorkspaceFilter
workspaceName string
리턴 WorkspaceFilter
        public void pulls_the_current_filter_from_the_project()
        {
            var project = new Project
            {
                FixtureAssembly = typeof (GrammarMarker).Assembly.GetName().Name
            };

            project.WorkspaceFor("1").AddFilter(new FixtureFilter()
            {
                Name = "North", Type = FilterType.Fixture
            });

            project.WorkspaceFor("2").AddFilter(new FixtureFilter()
            {
                Name = "South",
                Type = FilterType.Fixture
            });

            project.SelectWorkspaces(new string[]{"1", "2"});

            var fa = new FixtureAssembly(project);

            fa.Filter.Filters.ShouldHaveTheSameElementsAs(project.CurrentFixtureFilter().Filters);
        }
예제 #2
0
 public void get_workspace_for_a_name_returns_the_same()
 {
     var project = new Project();
     project.WorkspaceFor("Main").ShouldBeTheSameAs(project.WorkspaceFor("Main"));
 }
예제 #3
0
        public void SetUp()
        {
            project = new Project();
            project.WorkspaceFor("States").AddFilter(new FixtureFilter()
            {
                Name = "StateFixtures",
                Type = FilterType.Namespace
            });

            project.WorkspaceFor("North").AddFilter(new FixtureFilter()
            {
                Name = "North",
                Type = FilterType.Fixture
            });

            project.WorkspaceFor("South").AddFilter(new FixtureFilter()
            {
                Name = "South",
                Type = FilterType.Fixture
            });
        }