public void CertainAttributesAreNotAllowed(Type type) { var fixtures = new SetUpFixtureAttribute().BuildFrom(new TypeWrapper(type)); foreach (var fixture in fixtures) { Assert.That(fixture.RunState, Is.EqualTo(RunState.NotRunnable)); } }
public void SetUpFixtureMayBeParallelizable() { var fixtures = new SetUpFixtureAttribute().BuildFrom(new TypeWrapper(typeof(ParallelizableSetUpFixture))); foreach (var fixture in fixtures) { Assert.That(fixture.Properties.Get(PropertyNames.ParallelScope), Is.EqualTo(ParallelScope.Self)); } }
public void SetUpFixtureCanBeIgnored() { var fixtures = new SetUpFixtureAttribute().BuildFrom(new TypeWrapper(typeof(IgnoredSetUpFixture))); foreach (var fixture in fixtures) { Assert.That(fixture.RunState, Is.EqualTo(RunState.Ignored)); } }
public void StaticClassIsAllowed() { var abstractType = typeof(StaticSetupClass); var fixtures = new SetUpFixtureAttribute().BuildFrom(new TypeWrapper(abstractType)); foreach (var fixture in fixtures) { Assert.That(fixture.RunState, Is.EqualTo(RunState.Runnable)); } }
public void CertainAttributesAreNotAllowed(Type type) { var fixture = new SetUpFixtureAttribute().BuildFrom(type); Assert.That(fixture.RunState, Is.EqualTo(RunState.NotRunnable)); }
public void CertainAttributesAreNotAllowed(Type type) { var fixtures = new SetUpFixtureAttribute().BuildFrom(new TypeWrapper(type)); foreach (var fixture in fixtures) Assert.That(fixture.RunState, Is.EqualTo(RunState.NotRunnable)); }