@@ -36,8 +36,8 @@ public async static Task<T> ParseXmlContent<T>(HttpContent content)
3636 {
3737 using ( var stream = await content . ReadAsStreamAsync ( ) )
3838 {
39- var serializer = new XmlSerializer ( typeof ( T ) ) ;
40- return ( T ) serializer . Deserialize ( stream ) ;
39+ var serializer = new XmlSerializer ( typeof ( T ) ) ;
40+ return ( T ) serializer . Deserialize ( stream ) ;
4141 }
4242 }
4343
@@ -54,11 +54,11 @@ public static T ParseXml<T>(string xml)
5454 public static void AssertObjects ( object estimated , object value )
5555 {
5656 var type = estimated . GetType ( ) ;
57- foreach ( var property in type . GetProperties ( BindingFlags . Instance | BindingFlags . Public ) )
57+ foreach ( var property in type . GetProperties ( BindingFlags . Instance | BindingFlags . Public ) )
5858 {
5959 var est = property . GetValue ( estimated ) ;
6060 var val = property . GetValue ( value ) ;
61- if ( est == null && val == null ) continue ;
61+ if ( est == null && val == null ) continue ;
6262 var t = ( val ?? est ) . GetType ( ) ;
6363 if ( t . IsPrimitive || val is IComparable )
6464 {
@@ -108,7 +108,7 @@ public static string ToXmlStringMinified(object data)
108108
109109
110110 using ( var writer = new Utf8StringWriter ( ) )
111- using ( var xmlWriter = XmlWriter . Create ( writer , new XmlWriterSettings { Indent = false , OmitXmlDeclaration = true } ) )
111+ using ( var xmlWriter = XmlWriter . Create ( writer , new XmlWriterSettings { Indent = false , OmitXmlDeclaration = true } ) )
112112 {
113113 serializer . Serialize ( xmlWriter , data ) ;
114114 return writer . ToString ( ) ;
0 commit comments