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()
958
958
959
959
FieldInfo ? fieldInfo = typeof ( ModelWithCommandNamesThatCantBeLowered ) . GetField ( $ "_{ nameof ( ModelWithCommandNamesThatCantBeLowered . 中文 ) } Command", BindingFlags . Instance | BindingFlags . NonPublic ) ;
960
960
961
- Assert . AreSame ( model . 中文Command , fieldInfo . GetValue ( model ) ) ;
961
+ Assert . AreSame ( model . 中文Command , fieldInfo ? . GetValue ( model ) ) ;
962
962
963
963
fieldInfo = typeof ( ModelWithCommandNamesThatCantBeLowered ) . GetField ( $ "_{ nameof ( ModelWithCommandNamesThatCantBeLowered . c中文 ) } Command", BindingFlags . Instance | BindingFlags . NonPublic ) ;
964
964
965
- Assert . AreSame ( model . c中文Command , fieldInfo . GetValue ( model ) ) ;
965
+ Assert . AreSame ( model . c中文Command , fieldInfo ? . GetValue ( model ) ) ;
966
966
}
967
967
968
968
public abstract partial class BaseViewModel : ObservableObject
You can’t perform that action at this time.
0 commit comments