@@ -202,7 +202,7 @@ public void CustomAttributeDelete()
202202
203203 Type preUpdateTy = assm . GetType ( "System.Reflection.Metadata.ApplyUpdate.Test.ClassWithCustomAttributeDelete" ) ;
204204 Assert . NotNull ( preUpdateTy ) ;
205-
205+
206206 // before the update the type has a MyDeleteAttribute on it
207207 Attribute [ ] cattrs = Attribute . GetCustomAttributes ( preUpdateTy , attrType ) ;
208208 Assert . NotNull ( cattrs ) ;
@@ -354,7 +354,7 @@ public static void TestAddInstanceField()
354354
355355 Assert . Equal ( 6 , x2 . GetIntArrayLength ( ) ) ;
356356 Assert . Equal ( 7 , x2 . GetIntArrayElt ( 3 ) ) ;
357-
357+
358358 // now check that reflection can get/set the new fields
359359 var fi = x2 . GetType ( ) . GetField ( "NewStructField" ) ;
360360
@@ -424,7 +424,7 @@ public static void TestAddInstanceField()
424424 // token is in that range. If more code is added, revise this test.
425425
426426 Assert . True ( ( addedEventToken & 0x00ffffff ) < 4 ) ;
427-
427+
428428 fi = x2 . GetType ( ) . GetField ( "AddedDateTime" ) ;
429429 Assert . NotNull ( fi ) ;
430430 var dt = DateTime . Now ;
@@ -814,7 +814,7 @@ public static void TestReflectionAddNewMethod()
814814 Assert . NotNull ( parm . ParameterType ) ;
815815 Assert . Equal ( parmPos , parm . Position ) ;
816816 Assert . NotNull ( parm . Name ) ;
817-
817+
818818 var cas = parm . GetCustomAttributes ( false ) ;
819819 foreach ( var ca in cas ) {
820820 Assert . NotNull ( ca ) ;
@@ -867,7 +867,7 @@ public static void TestGenericAddStaticField()
867867 var y = new System . Reflection . Metadata . ApplyUpdate . Test . GenericAddStaticField < double > ( ) ;
868868
869869 Assert . Equal ( 0.0 , y . GetField ( ) ) ;
870-
870+
871871 ApplyUpdateUtil . ApplyUpdate ( assm ) ;
872872
873873 // there are two updates - the first adds the fields, the second one updates the
@@ -898,7 +898,7 @@ public static void TestGenericAddInstanceField()
898898 var y = new System . Reflection . Metadata . ApplyUpdate . Test . GenericAddInstanceField < double > ( 45.0 ) ;
899899
900900 Assert . Equal ( 0.0 , y . GetIt ( ) ) ;
901-
901+
902902 ApplyUpdateUtil . ApplyUpdate ( assm ) ;
903903
904904 var fi = x . GetType ( ) . GetField ( "myAddedField" , BindingFlags . Instance | BindingFlags . NonPublic ) ;
@@ -950,7 +950,7 @@ public static void TestNewMethodThrows()
950950 Assert . Equal ( "abcd" , x . ExistingMethod ( "abcd" ) ) ;
951951
952952 ApplyUpdateUtil . ApplyUpdate ( assm ) ;
953-
953+
954954 InvalidOperationException exn = Assert . Throws < InvalidOperationException > ( ( ) => x . ExistingMethod ( "spqr" ) ) ;
955955
956956 Assert . Equal ( "spqr" , exn . Message ) ;
0 commit comments