コード例 #1
0
        public void ParallelizableAttribute()
        {
            var attr = new ParallelizableAttribute(ParallelScope.Fixtures);

            attr.ApplyToContext(_context);
            Assert.That(_context.ParallelScope, Is.EqualTo(ParallelScope.Fixtures));
        }
 public void ApplyScopeToContext(ParallelScope scope)
 {
     var context = new TestExecutionContext();
     var attr = new ParallelizableAttribute(scope);
     attr.ApplyToContext(context);
     Assert.That(context.ParallelScope, Is.EqualTo(scope & ParallelScope.ContextMask));
 }
コード例 #3
0
ファイル: ApplyToContextTests.cs プロジェクト: elv1s42/nunit
 public void ParallelizableAttribute()
 {
     var attr = new ParallelizableAttribute(ParallelScope.Fixtures);
     attr.ApplyToContext(_context);
     Assert.That(_context.ParallelScope, Is.EqualTo(ParallelScope.Fixtures));
 }