Skip to content

Commit 1f8be41

Browse files
committed
fixing LINQ queries that generate differently for the VS2015 tool set.
1 parent a2e0914 commit 1f8be41

File tree

3 files changed

+615
-613
lines changed

3 files changed

+615
-613
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ src/packages
5050
*.cs.orig
5151
*.vb.orig
5252

53+
# Fake Artifacts
54+
.fake
55+
5356
# Other
5457
artifacts
5558
packages

src/MongoDB.Driver.Legacy.Tests/Linq/SelectNullableTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void TestWhereEEqualsNull()
9090
Assert.AreSame(typeof(C), translatedQuery.DocumentType);
9191

9292
var selectQuery = (SelectQuery)translatedQuery;
93-
Assert.AreEqual("(C c) => ((Nullable<Int32>)c.E == (Nullable<Int32>)null)", ExpressionFormatter.ToString(selectQuery.Where));
93+
Assert.AreEqual("(C c) => (c.E == (Nullable<E>)null)", ExpressionFormatter.ToString(selectQuery.Where));
9494
Assert.IsNull(selectQuery.OrderBy);
9595
Assert.IsNull(selectQuery.Projection);
9696
Assert.IsNull(selectQuery.Skip);

0 commit comments

Comments
 (0)