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

            TestAssemblyInfo = testAssemblyInfo;
        }
コード例 #2
0
        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)
 {
 }