Skip to content

Commit 55407f7

Browse files
committed
CSHARP-5473: Requested changes.
1 parent 57a7d59 commit 55407f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp5473Tests.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace MongoDB.Driver.Tests.Linq.Linq3Implementation.Jira
2323
public class CSharp5473Tests : Linq3IntegrationTest
2424
{
2525
[Fact]
26-
public void Select_decimal_divide_should_work()
26+
public void Translate_should_work()
2727
{
2828
var collection = GetCollection();
2929

@@ -34,7 +34,8 @@ public void Select_decimal_divide_should_work()
3434
var stages = provider.Translate(queryable, out var outputSerializer);
3535
AssertStages(stages, "{ $project : { _v : { $add : ['$X', 1] }, _id : 0 } }");
3636

37-
var result = queryable.First();
37+
var pipeline = new BsonDocumentStagePipelineDefinition<C, int>(stages, outputSerializer);
38+
var result = collection.Aggregate(pipeline).Single();
3839
result.Should().Be(2);
3940
}
4041

0 commit comments

Comments
 (0)