@@ -18,29 +18,29 @@ public void Test1() {
1818
1919 // Find one item in the table matching a predicate
2020 NullableItem Item = NullableItems . FindAll ( ) . First ( ) ;
21- Assert . Null ( Item . NullableIntWithNullValue ) ;
22- Assert . Equal ( 3 , Item . NullableIntWithNonNullValue ) ;
23- Assert . Equal ( 4 , Item . NonNullableInt ) ;
21+ Item . NullableIntWithNullValue . ShouldBeNull ( ) ;
22+ Item . NullableIntWithNonNullValue . ShouldBe ( 3 ) ;
23+ Item . NonNullableInt . ShouldBe ( 4 ) ;
2424 }
2525 [ Fact ]
2626 public void TestSqliteValue ( ) {
2727 // Test nullable integer with non-null value
2828 SqliteValue NullableIntWithNullValue = ( long ? ) null ;
29- Assert . Throws < NullReferenceException > ( ( ) => NullableIntWithNullValue . CastInteger ) ;
30- Assert . Null ( NullableIntWithNullValue . AsInteger ) ;
31- Assert . True ( NullableIntWithNullValue . IsNull ) ;
29+ Should . Throw < NullReferenceException > ( ( ) => NullableIntWithNullValue . CastInteger ) ;
30+ NullableIntWithNullValue . AsInteger . ShouldBeNull ( ) ;
31+ NullableIntWithNullValue . IsNull . ShouldBeTrue ( ) ;
3232
3333 // Test nullable integer with non-null value
3434 SqliteValue NullableIntWithNonNullValue = ( long ? ) 3 ;
35- Assert . Equal ( 3 , NullableIntWithNonNullValue . CastInteger ) ;
36- Assert . Equal ( 3 , NullableIntWithNonNullValue . AsInteger ) ;
37- Assert . False ( NullableIntWithNonNullValue . IsNull ) ;
35+ NullableIntWithNonNullValue . CastInteger . ShouldBe ( 3 ) ;
36+ NullableIntWithNonNullValue . AsInteger . ShouldBe ( 3 ) ;
37+ NullableIntWithNonNullValue . IsNull . ShouldBe ( false ) ;
3838
3939 // Test non-nullable integer
4040 SqliteValue NonNullableInt = ( long ) 4 ;
41- Assert . Equal ( 4 , NonNullableInt . CastInteger ) ;
42- Assert . Equal ( 4 , NonNullableInt . AsInteger ) ;
43- Assert . False ( NonNullableInt . IsNull ) ;
41+ NonNullableInt . CastInteger . ShouldBe ( 4 ) ;
42+ NonNullableInt . AsInteger . ShouldBe ( 4 ) ;
43+ NonNullableInt . IsNull . ShouldBe ( false ) ;
4444 }
4545}
4646
0 commit comments