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); }
public void get_workspace_for_a_name_returns_the_same() { var project = new Project(); project.WorkspaceFor("Main").ShouldBeTheSameAs(project.WorkspaceFor("Main")); }
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 }); }