Skip to content

Commit 7bcf7c3

Browse files
committed
- Tests fix
1 parent 0c9e2a6 commit 7bcf7c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/MongoDB.Driver.Tests/PipelineDefinitionBuilderTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public void Search_should_throw_when_query_is_null()
248248
var pipeline = new EmptyPipelineDefinition<BsonDocument>();
249249
var exception = Record.Exception(() => pipeline.Search(null));
250250
exception.Should().BeOfType<ArgumentNullException>()
251-
.Which.ParamName.Should().Be("query");
251+
.Which.ParamName.Should().Be("searchDefinition");
252252
}
253253

254254
[Fact]
@@ -304,7 +304,7 @@ public void SearchMeta_should_throw_when_query_is_null()
304304
var pipeline = new EmptyPipelineDefinition<BsonDocument>();
305305
var exception = Record.Exception(() => pipeline.SearchMeta(null));
306306
exception.Should().BeOfType<ArgumentNullException>()
307-
.Which.ParamName.Should().Be("query");
307+
.Which.ParamName.Should().Be("searchDefinition");
308308
}
309309

310310
// private methods

0 commit comments

Comments
 (0)