@@ -63,29 +63,29 @@ private void ExecuteNotificationUrlTest(
6363 Type classTypeExpected ,
6464 string referencedObjectPropertyName ,
6565 string subClassObjectPropertyName = null ,
66- Type subClassTypeExpected = null
67- ) {
66+ Type subClassTypeExpected = null ) {
6867 var jsonString = ReadJsonFromFile ( expectedJsonFileName ) ;
6968 var notificationUrl = NotificationUrl . CreateFromJsonString ( jsonString ) ;
7069
7170 Assert . NotNull ( notificationUrl ) ;
7271 Assert . NotNull ( notificationUrl . Object ) ;
7372
74- var model = notificationUrl . Object . GetType ( ) . GetProperty ( referencedObjectPropertyName ) . GetValue (
75- notificationUrl . Object ) ;
73+ var model = notificationUrl . Object . GetType ( )
74+ . GetProperty ( referencedObjectPropertyName )
75+ . GetValue ( notificationUrl . Object ) ;
7676 var referencedModel = notificationUrl . Object . GetReferencedObject ( ) ;
7777
7878 Assert . NotNull ( model ) ;
7979 Assert . NotNull ( referencedModel ) ;
8080 Assert . IsType ( classTypeExpected , referencedModel ) ;
81- Assert . Equal ( classTypeExpected , referencedModel . GetType ( ) ) ;
8281
8382 if ( subClassObjectPropertyName == null || subClassTypeExpected == null ) return ;
84- var subClass = referencedModel . GetType ( ) . GetProperty ( subClassObjectPropertyName ) . GetValue (
85- referencedModel ) ;
83+ var subClass = referencedModel . GetType ( )
84+ . GetProperty ( subClassObjectPropertyName )
85+ . GetValue ( referencedModel ) ;
8686
8787 Assert . NotNull ( subClass ) ;
88- Assert . Equal ( subClassTypeExpected , subClass . GetType ( ) ) ;
88+ Assert . IsType ( subClassTypeExpected , subClass ) ;
8989 }
9090
9191 private static string ReadJsonFromFile ( string fileName )
0 commit comments