private void TestSetupForAttributes(out CodeNamespace generatedCode, out ScenarioOutline scenario, out IList<CodeTypeMember> testMethods, out IList<TableCell> tableHeaders, out IList<TableRow> tableBody) { var document = CreateSpecFlowDocument(SampleFeatureFile.FeatureFileWithScenarioVariantTags); generatedCode = SetupFeatureGenerator<MsTestProviderExtended>(document); scenario = document.GetScenario<ScenarioOutline>(SampleFeatureFile.ScenarioTitle_TagsAndExamples); testMethods = generatedCode.GetRowTestMethods(scenario); tableHeaders = scenario.GetExamplesTableHeaders(); tableBody = scenario.GetExamplesTableBody(); }
private void TestSetupForAttributesForRowTests(out ScenarioOutline scenario, out CodeTypeMember testMethod, out IList <CodeAttributeDeclaration> testCaseAttributes, out IList <TableRow> tableBody) { var document = CreateSpecFlowDocument(SampleFeatureFile.FeatureFileWithScenarioVariantTags); var generatedCode = SetupFeatureGenerator <NUnitProviderExtended>(document); scenario = document.GetScenario <ScenarioOutline>(SampleFeatureFile.ScenarioTitle_TagsAndExamples); testMethod = generatedCode.GetTestMethods(scenario).First(); testCaseAttributes = testMethod.GetMethodAttributes("NUnit.Framework.TestCaseAttribute"); tableBody = scenario.GetExamplesTableBody(); }