File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -958,11 +958,11 @@ public void Test_ObservableProperty_CommandNamesThatCantBeLowered()
958958
959959 FieldInfo ? fieldInfo = typeof ( ModelWithCommandNamesThatCantBeLowered ) . GetField ( $ "_{ nameof ( ModelWithCommandNamesThatCantBeLowered . 中文 ) } Command", BindingFlags . Instance | BindingFlags . NonPublic ) ;
960960
961- Assert . AreSame ( model . 中文Command , fieldInfo . GetValue ( model ) ) ;
961+ Assert . AreSame ( model . 中文Command , fieldInfo ? . GetValue ( model ) ) ;
962962
963963 fieldInfo = typeof ( ModelWithCommandNamesThatCantBeLowered ) . GetField ( $ "_{ nameof ( ModelWithCommandNamesThatCantBeLowered . c中文 ) } Command", BindingFlags . Instance | BindingFlags . NonPublic ) ;
964964
965- Assert . AreSame ( model . c中文Command , fieldInfo . GetValue ( model ) ) ;
965+ Assert . AreSame ( model . c中文Command , fieldInfo ? . GetValue ( model ) ) ;
966966 }
967967
968968 public abstract partial class BaseViewModel : ObservableObject
You can’t perform that action at this time.
0 commit comments