Skip to content

Commit b85c219

Browse files
committed
CSHARP-2727: Skip test using $toString when testing against server 3.6.
1 parent b9b80f1 commit b85c219

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/MongoDB.Driver.Tests/Linq/Linq3ImplementationTests/Jira/CSharp2727Tests.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,19 @@
1818
using FluentAssertions;
1919
using MongoDB.Bson;
2020
using MongoDB.Bson.Serialization;
21+
using MongoDB.Driver.Core.Misc;
22+
using MongoDB.Driver.Core.TestHelpers.XunitExtensions;
2123
using MongoDB.Driver.Linq;
2224
using Xunit;
2325

2426
namespace MongoDB.Driver.Tests.Linq.Linq3ImplementationTests.Jira
2527
{
2628
public class CSharp2727Tests : Linq3IntegrationTest
2729
{
28-
[Fact]
30+
[SkippableFact]
2931
public void Find_with_predicate_on_Body_should_work()
3032
{
33+
RequireServer.Check().Supports(Feature.AggregateToString);
3134
var collection = CreateCollection();
3235
var filter = new ExpressionFilterDefinition<Entity>(x => new[] { "Test1", "Test2" }.Contains((string)x.Body["name"]));
3336

@@ -61,9 +64,10 @@ public void Find_with_predicate_on_Caption_should_work()
6164
results.Select(x => x.Id).Should().Equal(1, 2);
6265
}
6366

64-
[Fact]
67+
[SkippableFact]
6568
public void Where_with_predicate_on_Body_should_work()
6669
{
70+
RequireServer.Check().Supports(Feature.AggregateToString);
6771
var collection = CreateCollection();
6872

6973
var queryable = collection

0 commit comments

Comments
 (0)