示例#1
0
 public void UriSectionSchemeSettings()
 {
     using (var temp = new TempConfig(PlatformDetection.IsFullFramework ? UriSectionConfiguration_NetFX : UriSectionConfiguration_Core))
     {
         var        config     = ConfigurationManager.OpenExeConfiguration(temp.ExePath);
         UriSection uriSection = (UriSection)config.GetSection("uri");
         Assert.Equal(1, uriSection.SchemeSettings.Count);
         SchemeSettingElement schemeSettingElement = uriSection.SchemeSettings[0];
         Assert.Equal("ftp", schemeSettingElement.Name);
         Assert.Equal(GenericUriParserOptions.DontCompressPath, schemeSettingElement.GenericUriParserOptions);
     }
 }
 public int IndexOf(SchemeSettingElement element)
 {
     throw new NotImplementedException();
 }
 public int IndexOf(SchemeSettingElement element)
 {
     return(BaseIndexOf(element));
 }