Example #1
0
        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));
            }
        }
Example #2
0
        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));
            }
        }
Example #3
0
        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));
            }
        }
Example #4
0
        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));
 }
Example #7
0
        public void CertainAttributesAreNotAllowed(Type type)
        {
            var fixture = new SetUpFixtureAttribute().BuildFrom(type);

            Assert.That(fixture.RunState, Is.EqualTo(RunState.NotRunnable));
        }