Commit be72930 1 parent b4ed0e9 commit be72930 Copy full SHA for be72930
File tree 6 files changed +12
-20
lines changed
Tests.Rqlite.Internal/Request/UriBuilder
6 files changed +12
-20
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Project >
3
3
<PropertyGroup >
4
- <TargetFrameworks >net7 .0</TargetFrameworks >
4
+ <TargetFrameworks >net8 .0</TargetFrameworks >
5
5
<LangVersion >latest</LangVersion >
6
6
<Nullable >enable</Nullable >
7
7
<IsPackable >false</IsPackable >
Original file line number Diff line number Diff line change @@ -115,13 +115,9 @@ public async Task returns_correct_RqliteExecuteResponse()
115
115
116
116
// Assert
117
117
var actual = result . AssertOk ( ) ;
118
- Assert . Collection ( actual ,
119
- x =>
120
- {
121
- Assert . Equal ( lastInsertId , x . LastInsertId ) ;
122
- Assert . Equal ( rowsAffected , x . RowsAffected ) ;
123
- }
124
- ) ;
118
+ var single = Assert . Single ( actual ) ;
119
+ Assert . Equal ( lastInsertId , single . LastInsertId ) ;
120
+ Assert . Equal ( rowsAffected , single . RowsAffected ) ;
125
121
}
126
122
}
127
123
Original file line number Diff line number Diff line change @@ -98,9 +98,8 @@ public void uses_global_IncludeTimings()
98
98
99
99
// Assert
100
100
var client = Assert . IsType < RqliteClient > ( result ) ;
101
- Assert . Collection ( client . ExecuteUri ( ) . QueryVars . AllKeys ,
102
- x => Assert . Equal ( "timings" , x )
103
- ) ;
101
+ var single = Assert . Single ( client . ExecuteUri ( ) . QueryVars . AllKeys ) ;
102
+ Assert . Equal ( "timings" , single ) ;
104
103
}
105
104
106
105
[ Fact ]
Original file line number Diff line number Diff line change @@ -18,9 +18,8 @@ public void adds_key_to_QueryVars_with_null_value()
18
18
builder . AddQueryVar ( key ) ;
19
19
20
20
// Assert
21
- Assert . Collection ( builder . QueryVars . AllKeys ,
22
- x => Assert . Equal ( key , x )
23
- ) ;
21
+ var single = Assert . Single ( builder . QueryVars . AllKeys ) ;
22
+ Assert . Equal ( key , single ) ;
24
23
Assert . Null ( builder . QueryVars [ key ] ) ;
25
24
}
26
25
}
Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ public void adds_key_to_QueryVars_with_value()
19
19
builder . AddQueryVar ( key , value ) ;
20
20
21
21
// Assert
22
- Assert . Collection ( builder . QueryVars . AllKeys ,
23
- x => Assert . Equal ( key , x )
24
- ) ;
22
+ var single = Assert . Single ( builder . QueryVars . AllKeys ) ;
23
+ Assert . Equal ( key , single ) ;
25
24
Assert . Equal ( value , builder . QueryVars [ key ] ) ;
26
25
}
27
26
}
Original file line number Diff line number Diff line change @@ -44,9 +44,8 @@ public void adds_timings_to_QueryVars()
44
44
var result = new UriBuilder ( Rnd . Str , true ) ;
45
45
46
46
// Assert
47
- Assert . Collection ( result . QueryVars . AllKeys ,
48
- x => Assert . Equal ( "timings" , x )
49
- ) ;
47
+ var single = Assert . Single ( result . QueryVars . AllKeys ) ;
48
+ Assert . Equal ( "timings" , single ) ;
50
49
}
51
50
}
52
51
}
You can’t perform that action at this time.
0 commit comments