Пример #1
0
        private void SetTestMethodDeclaration(CodeMemberMethod testMethod, Scenario scenario, Tags additionalTags, bool rowTest = false)
        {
            testMethod.Attributes = MemberAttributes.Public;
            testMethod.Name       = string.Format(TEST_FORMAT, scenario.Title.ToIdentifier());

            if (rowTest)
            {
                testGeneratorProvider.SetRowTest(testMethod, scenario.Title);
            }
            else
            {
                testGeneratorProvider.SetTest(testMethod, scenario.Title);
            }

            if (scenario.Tags != null)
            {
                SetCategoriesFromTags(testMethod, scenario.Tags);
            }
            if (additionalTags != null)
            {
                SetCategoriesFromTags(testMethod, additionalTags);
            }
        }