Skip to content

Commit 1f3c709

Browse files
author
rstam
committed
Disabled a warning that should be ignored. Ran unit tests against Release builds. Note that the changes to run unit tests against Release builds are in user local files (so not in github). See the updated instructions at http://www.mongodb.org/display/DOCS/CSharp+Driver+Tutorial#CSharpDriverTutorial-Runningunittests (look for the new /config command line option to nunit.exe).
1 parent 7589291 commit 1f3c709

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

BsonUnitTests/DefaultSerializer/ExtraElementsTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ public void TestExtraElementsOfAllTypes()
217217

218218
Assert.AreEqual(23, c.X.Count);
219219
Assert.IsTrue(new object[] { 1, 2.0 }.SequenceEqual((List<object>)c.X["XArray"]));
220+
#pragma warning disable 618 // OldBinary is obsolete
220221
Assert.AreEqual(BsonBinarySubType.OldBinary, ((BsonBinaryData)c.X["XBinary"]).SubType);
222+
#pragma warning restore 618
221223
Assert.IsTrue(new byte[] { 0x12, 0x34 }.SequenceEqual(((BsonBinaryData)c.X["XBinary"]).Bytes));
222224
Assert.AreEqual(true, c.X["XBoolean"]);
223225
Assert.IsTrue(new byte[] { 0x12, 0x34 }.SequenceEqual((byte[])c.X["XByteArray"]));

0 commit comments

Comments
 (0)