Skip to content

Commit d7b8144

Browse files
rstamDmitryLukyanov
authored andcommitted
CSHARP-4538: Skip some tests on older servers.
1 parent fa6ec4a commit d7b8144

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
using System.Linq;
1717
using FluentAssertions;
1818
using MongoDB.Bson;
19+
using MongoDB.Driver.Core.Misc;
20+
using MongoDB.Driver.Core.TestHelpers.XunitExtensions;
1921
using Xunit;
2022

2123
namespace MongoDB.Driver.Tests.Linq.Linq3ImplementationTests.Jira
@@ -25,6 +27,7 @@ public class CSharp4538Tests : Linq3IntegrationTest
2527
[Fact]
2628
public void Project_with_nullable_value_should_work()
2729
{
30+
RequireServer.Check().Supports(Feature.FindProjectionExpressions);
2831
var collection = CreateCollection();
2932

3033
var find = collection
@@ -41,6 +44,7 @@ public void Project_with_nullable_value_should_work()
4144
[Fact]
4245
public void Project_with_anonymous_class_with_nullable_value_should_work()
4346
{
47+
RequireServer.Check().Supports(Feature.FindProjectionExpressions);
4448
var collection = CreateCollection();
4549

4650
var find = collection

0 commit comments

Comments
 (0)