@@ -25,21 +25,46 @@ public Task LineSegment()
2525 => AssertType ( new NpgsqlLSeg ( 1 , 2 , 3 , 4 ) , "[(1,2),(3,4)]" , "lseg" , NpgsqlDbType . LSeg ) ;
2626
2727 [ Test ]
28- public Task Box ( )
29- => AssertType ( new NpgsqlBox ( 3 , 4 , 1 , 2 ) , "(4,3),(2,1)" , "box" , NpgsqlDbType . Box ,
28+ public async Task Box ( )
29+ {
30+ await AssertType (
31+ new NpgsqlBox ( top : 3 , right : 4 , bottom : 1 , left : 2 ) ,
32+ "(4,3),(2,1)" ,
33+ "box" ,
34+ NpgsqlDbType . Box ,
3035 skipArrayCheck : true ) ; // Uses semicolon instead of comma as separator
3136
37+ await AssertType (
38+ new NpgsqlBox ( top : 1 , right : 2 , bottom : 3 , left : 4 ) ,
39+ "(4,3),(2,1)" ,
40+ "box" ,
41+ NpgsqlDbType . Box ,
42+ skipArrayCheck : true ) ; // Uses semicolon instead of comma as separator
43+ }
44+
3245 [ Test ]
33- public Task Box_array ( )
34- => AssertType (
46+ public async Task Box_array ( )
47+ {
48+ var boxarr = await AssertType (
49+ new [ ]
50+ {
51+ new NpgsqlBox ( top : 3 , right : 4 , bottom : 1 , left : 2 ) ,
52+ new NpgsqlBox ( top : 5 , right : 6 , bottom : 3 , left : 4 ) ,
53+ } ,
54+ "{(4,3),(2,1);(6,5),(4,3)}" ,
55+ "box[]" ,
56+ NpgsqlDbType . Box | NpgsqlDbType . Array ) ;
57+
58+ await AssertType (
3559 new [ ]
3660 {
37- new NpgsqlBox ( 3 , 4 , 1 , 2 ) ,
38- new NpgsqlBox ( 5 , 6 , 3 , 4 )
61+ new NpgsqlBox ( top : 1 , right : 2 , bottom : 3 , left : 4 ) ,
62+ new NpgsqlBox ( top : 3 , right : 4 , bottom : 5 , left : 6 )
3963 } ,
4064 "{(4,3),(2,1);(6,5),(4,3)}" ,
4165 "box[]" ,
4266 NpgsqlDbType . Box | NpgsqlDbType . Array ) ;
67+ }
4368
4469 [ Test ]
4570 public Task Path_closed ( )
0 commit comments