Skip to content

Commit 93a3494

Browse files
committed
CSHARP-4586: Skip test on servers before 4.4.
1 parent 27d4661 commit 93a3494

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp4586Tests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
*/
1515

1616
using FluentAssertions;
17+
using MongoDB.Driver.Core.Misc;
18+
using MongoDB.Driver.Core.TestHelpers.XunitExtensions;
1719
using Xunit;
1820

1921
#if NET6_0_OR_GREATER
@@ -114,6 +116,7 @@ public void Project_View2_with_empty_initializer_should_work()
114116
[Fact]
115117
public void Project_View2_with_initializer_should_work()
116118
{
119+
RequireServer.Check().Supports(Feature.FindProjectionExpressions);
117120
var collection = CreateCollection();
118121
var id = "a";
119122
var filter = Builders<Model>.Filter.Eq(m => m.Id, id);

0 commit comments

Comments
 (0)