Пример #1
0
        public void LoadFromXml(TextReader textReader)
        {
            this.filename = null;
            this.testDataSectionsByName.Clear();

            this.documentXml = XDocument.Parse(textReader.ReadToEnd());

            if (this.Normalizer != null)
            {
                this.Normalizer.NormalizeDocument(this.documentXml);
                this.Normalizer.UnpackagePortableFormat(this.documentXml);
            }

            foreach (XElement testDataSectionElement in this.documentXml.Root.Elements())
            {
                TestDataSection testDataSection = new TestDataSection(testDataSectionElement);
                this.testDataSectionsByName[testDataSection.Name] = testDataSection;
            }
        }
 public SectionConfigTestDataService(TestDataSection section)
 {
     _section = section;
 }