Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
Visual Studio 2015 Community Edition, FluentAssertions 4.0.0 for .NET 4.5.2
*Location*: https://docs.mongodb.org/getting-started/csharp/query/
*User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
*Referrer*: https://docs.mongodb.org/getting-started/csharp/insert/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: query
Visual Studio 2015 Community Edition, FluentAssertions 4.0.0 for .NET 4.5.2 *Location*: https://docs.mongodb.org/getting-started/csharp/query/ *User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36 *Referrer*: https://docs.mongodb.org/getting-started/csharp/insert/ *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: query
Description
The FluentAssertions library does not contain an IsInAscendingOrder as represented in the sorting query example for C#. Instead, the code should probably read result.Should().BeInAscendingOrder(document => new BsonDocument {
{ "borough", "document["borough"] },
{ "address.zipcode", document.GetValue("address.zipcode", "") }}); At least, this untested revision does not violate any compilation errors.