File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -400,6 +400,9 @@ public void WhenAnyShouldWorkEvenWithNormalProperties()
400400 fixture . WhenAnyValue ( x => x . PocoProperty ) . Subscribe ( output2 . Add ) ;
401401 var output3 = new List < IObservedChange < TestFixture , int ? > > ( ) ;
402402 fixture . WhenAny ( x => x . NullableInt , x => x ) . Subscribe ( output3 . Add ) ;
403+
404+ var output4 = new List < int ? > ( ) ;
405+ fixture . WhenAnyValue ( x => x . NullableInt ) . Subscribe ( output4 . Add ) ;
403406
404407 Assert . Equal ( 1 , output . Count ) ;
405408 Assert . Equal ( fixture , output [ 0 ] . Sender ) ;
@@ -413,6 +416,9 @@ public void WhenAnyShouldWorkEvenWithNormalProperties()
413416 Assert . Equal ( fixture , output3 [ 0 ] . Sender ) ;
414417 Assert . Equal ( "NullableInt" , output3 [ 0 ] . PropertyName ) ;
415418 Assert . Equal ( null , output3 [ 0 ] . Value ) ;
419+
420+ Assert . Equal ( 1 , output4 . Count ) ;
421+ Assert . Equal ( null , output4 [ 0 ] ) ;
416422 }
417423
418424 [ Fact ]
You can’t perform that action at this time.
0 commit comments