public void CreateFragmentBefore_Create_Test2() { File.Copy("DirectDnsResponderSvc.exe.config", "DirectDnsResponderSvc.exe.config.test", true); var editor = new XPath(); editor.XmlFilePath = "DirectDnsResponderSvc.exe.config.test"; var domainsFragement = "<section name=\"CertPolicyServiceResolverSettings\" type=\"Surescripts.Health.Direct.DnsResponder.CertPolicyServiceResolverSettingsSection, Surescripts.Health.Direct.DnsResponder\" allowLocation=\"true\" allowDefinition=\"Everywhere\"/>"; //var original = editor.SelectSingleAttribute("xpath"); //Act editor.CreateFullFragment(domainsFragement, @"/configuration/configSections/sectionGroup"); }