示例#1
0
 public BespokeTheory(ITestDataProvider provider, TestName baseName, Func <TestExecutionContext, object> func, TestOptions options) : base(func.Method)
 {
     _children          = new TestUnitCollection(this);
     _func              = func;
     _testDataProviders = TestDataProviderCollection.Create(provider);
     _baseTestName      = baseName;
     _options           = options;
     Timeout            = options.Timeout;
     PassExplicitly     = options.PassExplicitly;
     Reason             = options.Reason;
     Tags.Add(TestTag.Dynamic);
 }
示例#2
0
        private TestDataProviderCollection CreateTestDataProviders()
        {
            var attrs = TestMethod.GetCustomAttributes(false);

            return(TestDataProviderCollection.Create(attrs.OfType <ITestDataProvider>().ToArray()));
        }