Exemplo n.º 1
0
        protected override void Initialize(TestContext testContext)
        {
            Metadata.Apply(testContext);

            // Either treat as a subject test class or a default one
            if (TestSubjectProvider != null)
            {
                var subjects = TestSubjectProvider.GetTestSubjects(testContext);
                foreach (var s in subjects)
                {
                    Type testClassType = ClosedTestClassType(TestClass, s);
                    var  binding       = new DefaultTestClassSubjectBinding(testClassType, s);
                    Children.Add(binding);
                }
            }
            else
            {
                TestClassInfo.AddTestMethods(TestClass, Children);
            }

            Metadata.ApplyDescendants(testContext, Descendants);
        }
Exemplo n.º 2
0
 protected override void Initialize(TestContext testContext)
 {
     Metadata.Apply(testContext);
     TestClassInfo.AddTestMethods(TestClass, Children);
     Metadata.ApplyDescendants(testContext, Descendants);
 }