protected TestInformationExtractorBase(TestAssemblyInfo testAssemblyInfo)
        {
            if (testAssemblyInfo == null)
            {
                throw new ArgumentNullException(nameof(testAssemblyInfo));
            }

            TestAssemblyInfo = testAssemblyInfo;
        }
        private ITestInformationExtractor GetTestInformationExtractor(TestAssemblyInfo testAssemblyInfo)
        {
            if (testAssemblyInfo == null)
            {
                throw new ArgumentNullException(nameof(testAssemblyInfo));
            }

            if (testAssemblyInfo.TestFramework == "xUnit")
            {
                return(new XUnitTestInformationExtractor(testAssemblyInfo));
            }

            throw new NotImplementedException($"There is no implementation for test framework {testAssemblyInfo.TestFramework}");
        }
示例#3
0
 public XUnitTestInformationExtractor(TestAssemblyInfo testAssemblyInfo) : base(testAssemblyInfo)
 {
 }