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)); }