예제 #1
0
        private void WriteEpic(SbeEpic epic)
        {
            xml.StartElement("epic");
            xml.StartElement("features");

            foreach (var feature in epic.GetFeatures())
            {
                WriteFeature(feature);
            }

            xml.EndElement();
            xml.EndElement();
        }
예제 #2
0
        private static SbeEpic GetCurrentEpic(SbeAssembly assembly, SpecflowContextWrapper specflowContext)
        {
            var epicName = specflowContext.GetEpicName();

            if (!assembly.Epics.TryGetValue(epicName, out SbeEpic epic))
            {
                epic = new SbeEpic
                {
                    Name = epicName,
                };
                assembly.Epics.Add(epicName, epic);
            }

            return(epic);
        }
예제 #3
0
        private static SbeFeature GetCurrentFeature(SbeEpic epic, SpecflowContextWrapper specflowContext)
        {
            var title = specflowContext.FeatureTitle;

            if (!epic.Features.TryGetValue(title, out SbeFeature feature))
            {
                feature = new SbeFeature
                {
                    Title = specflowContext.FeatureTitle,
                    Tags  = specflowContext.FeatureTags,
                };
                epic.Features.Add(title, feature);
            }

            return(feature);
        }