@@ -15,7 +15,7 @@ public sealed class HttpMessageFormattingTests
1515 [ TestMethod ]
1616 public async Task HttpException_GetFormattedText_WithMaskedSecret ( )
1717 {
18- MethodInfo createMethod = typeof ( HttpException ) . SafeGetMethod ( "Create" , BindingFlags . NonPublic | BindingFlags . Static , new [ ] { typeof ( HttpRequestMessage ) , typeof ( HttpResponseMessage ) } ) ;
18+ MethodInfo createMethod = typeof ( HttpException ) . SafeGetMethod ( "Create" , BindingFlags . Public | BindingFlags . Static , new [ ] { typeof ( HttpRequestMessage ) , typeof ( HttpResponseMessage ) } ) ;
1919 HttpRequestMessage request = new HttpRequestMessage ( ) ;
2020 request . Headers . Accept . Add ( new MediaTypeWithQualityHeaderValue ( "application/json" ) ) ;
2121 request . Headers . Accept . Add ( new MediaTypeWithQualityHeaderValue ( "text/json" ) ) ;
@@ -60,7 +60,7 @@ GET HTTP/1.1
6060 [ TestMethod ]
6161 public async Task HttpException_GetFormattedText_WithNoMaskedSecret ( )
6262 {
63- MethodInfo createMethod = typeof ( HttpException ) . SafeGetMethod ( "Create" , BindingFlags . NonPublic | BindingFlags . Static , new [ ] { typeof ( HttpRequestMessage ) , typeof ( HttpResponseMessage ) } ) ;
63+ MethodInfo createMethod = typeof ( HttpException ) . SafeGetMethod ( "Create" , BindingFlags . Public | BindingFlags . Static , new [ ] { typeof ( HttpRequestMessage ) , typeof ( HttpResponseMessage ) } ) ;
6464 HttpRequestMessage request = new HttpRequestMessage ( ) ;
6565 request . Headers . Authorization = new AuthenticationHeaderValue ( "Bearer" , "Secret!" ) ;
6666 request . Content = new FormUrlEncodedContent ( new [ ]
@@ -96,7 +96,7 @@ GET HTTP/1.1
9696 [ TestMethod ]
9797 public async Task HttpException_GetFormattedText_WithUnmaskedSecret ( )
9898 {
99- MethodInfo createMethod = typeof ( HttpException ) . SafeGetMethod ( "Create" , BindingFlags . NonPublic | BindingFlags . Static , new [ ] { typeof ( HttpRequestMessage ) , typeof ( HttpResponseMessage ) } ) ;
99+ MethodInfo createMethod = typeof ( HttpException ) . SafeGetMethod ( "Create" , BindingFlags . Public | BindingFlags . Static , new [ ] { typeof ( HttpRequestMessage ) , typeof ( HttpResponseMessage ) } ) ;
100100 HttpRequestMessage request = new HttpRequestMessage ( ) ;
101101 request . Headers . Authorization = new AuthenticationHeaderValue ( "Bearer" , "Okay" ) ;
102102
0 commit comments