Пример #1
0
 public IncludedTestFactory([NotNull] Type testFactoryType)
     : base(GetTitle(testFactoryType),
            GetTestFactory(testFactoryType),
            testFactoryType.Assembly,
            ReflectionUtils.IsObsolete(testFactoryType),
            TestDescriptorUtils.IsInternallyUsed(testFactoryType))
 {
     _testFactoryType = testFactoryType;
 }
 public IncludedTestConstructor([NotNull] Type testType, int constructorIndex)
     : base(GetTitle(testType, constructorIndex),
            TestDescriptorUtils.GetTestFactory(testType, constructorIndex),
            testType.Assembly,
            TestDescriptorUtils.IsObsolete(testType, constructorIndex),
            TestDescriptorUtils.IsInternallyUsed(testType, constructorIndex))
 {
     _testType         = testType;
     _constructorIndex = constructorIndex;
 }
Пример #3
0
        public IncludedTestClass([NotNull] Type testType)
            : base(GetTitle(testType),
                   testType.Assembly,
                   ReflectionUtils.IsObsolete(testType),
                   TestDescriptorUtils.IsInternallyUsed(testType),
                   ReflectionUtils.GetCategories(testType))
        {
            Assert.ArgumentNotNull(testType, nameof(testType));

            _testType = testType;
        }