Skip to content

Commit 82c48a2

Browse files
committed
Remove usages of ShouldContainKey
1 parent 7120fca commit 82c48a2

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

test/OpenApiKiotaEndToEndTests/QueryStrings/FilterTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
6565
});
6666

6767
response.Meta.ShouldNotBeNull();
68-
response.Meta.AdditionalData.ShouldContainKey("total").With(total => total.Should().Be(1));
68+
response.Meta.AdditionalData.Should().ContainKey("total").With(total => total.Should().Be(1));
6969
}
7070
}
7171

@@ -110,7 +110,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
110110
});
111111

112112
response.Meta.ShouldNotBeNull();
113-
response.Meta.AdditionalData.ShouldContainKey("total").With(total => total.Should().Be(1));
113+
response.Meta.AdditionalData.Should().ContainKey("total").With(total => total.Should().Be(1));
114114
}
115115
}
116116

@@ -148,7 +148,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
148148
response.Data.Should().HaveCount(1);
149149
response.Data.ElementAt(0).Id.Should().Be(node.Children.ElementAt(1).StringId);
150150
response.Meta.ShouldNotBeNull();
151-
response.Meta.AdditionalData.ShouldContainKey("total").With(total => total.Should().Be(1));
151+
response.Meta.AdditionalData.Should().ContainKey("total").WhoseValue.Should().Be(1);
152152
response.Links.ShouldNotBeNull();
153153
response.Links.Describedby.Should().Be("/swagger/v1/swagger.json");
154154
}

test/OpenApiKiotaEndToEndTests/QueryStrings/PaginationTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
5757
response.Data.Should().HaveCount(1);
5858
response.Data.ElementAt(0).Id.Should().Be(nodes[1].StringId);
5959
response.Meta.ShouldNotBeNull();
60-
response.Meta.AdditionalData.ShouldContainKey("total").With(total => total.Should().Be(3));
60+
response.Meta.AdditionalData.Should().ContainKey("total").WhoseValue.Should().Be(3);
6161
}
6262
}
6363

@@ -95,7 +95,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
9595
response.Data.ElementAt(0).Id.Should().Be(node.Children.ElementAt(0).StringId);
9696
response.Data.ElementAt(1).Id.Should().Be(node.Children.ElementAt(1).StringId);
9797
response.Meta.ShouldNotBeNull();
98-
response.Meta.AdditionalData.ShouldContainKey("total").With(total => total.Should().Be(3));
98+
response.Meta.AdditionalData.Should().ContainKey("total").WhoseValue.Should().Be(3);
9999
}
100100
}
101101

@@ -132,7 +132,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
132132
response.Data.Should().HaveCount(1);
133133
response.Data.ElementAt(0).Id.Should().Be(node.Children.ElementAt(2).StringId);
134134
response.Meta.ShouldNotBeNull();
135-
response.Meta.AdditionalData.ShouldContainKey("total").With(total => total.Should().Be(3));
135+
response.Meta.AdditionalData.Should().ContainKey("total").WhoseValue.Should().Be(3);
136136
}
137137
}
138138

test/OpenApiNSwagEndToEndTests/QueryStrings/FilterTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
6161
});
6262

6363
response.Meta.ShouldNotBeNull();
64-
response.Meta.ShouldContainKey("total").With(total => total.Should().Be(1));
64+
response.Meta.Should().ContainKey("total").WhoseValue.Should().Be(1);
6565
}
6666

6767
[Fact]
@@ -102,7 +102,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
102102
});
103103

104104
response.Meta.ShouldNotBeNull();
105-
response.Meta.ShouldContainKey("total").With(total => total.Should().Be(1));
105+
response.Meta.Should().ContainKey("total").WhoseValue.Should().Be(1);
106106
}
107107

108108
[Fact]
@@ -136,7 +136,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
136136
response.Data.Should().HaveCount(1);
137137
response.Data.ElementAt(0).Id.Should().Be(node.Children.ElementAt(1).StringId);
138138
response.Meta.ShouldNotBeNull();
139-
response.Meta.ShouldContainKey("total").With(total => total.Should().Be(1));
139+
response.Meta.Should().ContainKey("total").WhoseValue.Should().Be(1);
140140
response.Links.ShouldNotBeNull();
141141
response.Links.Describedby.Should().Be("/swagger/v1/swagger.json");
142142
}

test/OpenApiNSwagEndToEndTests/QueryStrings/PaginationTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
5353
response.Data.Should().HaveCount(1);
5454
response.Data.ElementAt(0).Id.Should().Be(nodes[1].StringId);
5555
response.Meta.ShouldNotBeNull();
56-
response.Meta.ShouldContainKey("total").With(total => total.Should().Be(3));
56+
response.Meta.Should().ContainKey("total").WhoseValue.Should().Be(3);
5757
}
5858

5959
[Fact]
@@ -87,7 +87,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
8787
response.Data.ElementAt(0).Id.Should().Be(node.Children.ElementAt(0).StringId);
8888
response.Data.ElementAt(1).Id.Should().Be(node.Children.ElementAt(1).StringId);
8989
response.Meta.ShouldNotBeNull();
90-
response.Meta.ShouldContainKey("total").With(total => total.Should().Be(3));
90+
response.Meta.Should().ContainKey("total").WhoseValue.Should().Be(3);
9191
}
9292

9393
[Fact]
@@ -120,7 +120,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
120120
response.Data.Should().HaveCount(1);
121121
response.Data.ElementAt(0).Id.Should().Be(node.Children.ElementAt(2).StringId);
122122
response.Meta.ShouldNotBeNull();
123-
response.Meta.ShouldContainKey("total").With(total => total.Should().Be(3));
123+
response.Meta.Should().ContainKey("total").WhoseValue.Should().Be(3);
124124
}
125125

126126
[Fact]

0 commit comments

Comments
 (0)