public void workspace_filter_returns_always_when_it_has_no_explicit_filters() { var workspace = new WorkspaceFilter(); workspace.FilterCount.ShouldEqual(0); workspace.Filters.ShouldHaveTheSameElementsAs(FixtureFilter.All()); }
public void return_a_blank_workspace_if_test_has_no_parent() { var test = new Test("something"); var workspace = test.GetWorkspace(); workspace.ShouldNotBeNull(); workspace.Filters.ShouldHaveTheSameElementsAs(FixtureFilter.All()); }
public void apply_the_always_filter() { var composite = new CompositeFilter <Type>(); FixtureFilter.All().Apply(composite); composite.Matches(typeof(MathFixture)).ShouldBeTrue(); composite.Matches(typeof(AnotherFixture)).ShouldBeTrue(); composite.Matches(this.GetType()).ShouldBeTrue(); }