[CSHARP-175] Mono - BsonUnitTests MongoDB.BsonUnitTests.DefaultSerializer.DictionarySerializers.DictionarySerializerTests.TestMixedPrimitiveTypesWithMixedKeys fails Created: 28/Feb/11  Updated: 02/Apr/15  Resolved: 11/Mar/11

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 0.11
Fix Version/s: 1.0

Type: Improvement Priority: Trivial - P5
Reporter: Sridhar Nanjundeswaran Assignee: Sridhar Nanjundeswaran
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MonoDevelop 2.4 on Windows 7



 Description   

BsonUnitTests MongoDB.BsonUnitTests.DefaultSerializer.DictionarySerializers.DictionarySerializerTests.TestMixedPrimitiveTypesWithMixedKeys
fails with a mismatch on
Assert.IsTrue(bson.SequenceEqual(rehydrated.ToBson()));



 Comments   
Comment by Robert Stam [ 11/Mar/11 ]

Fixed. The binary BSON representation was never guaranteed to be the same anyway because Hashtable entries aren't guaranteed to be in a certain order. Rewrote the unit test to compare the rehydrated to the original object at a higher level.

Comment by Sridhar Nanjundeswaran [ 10/Mar/11 ]

This test does not fail with MonoDevelop on OS X or Ubuntu using Mono Develop 2.4.2

Comment by Sridhar Nanjundeswaran [ 28/Feb/11 ]

Note: This unit test only fails when run from within MonoDevelop. Opening the same dll in Nunit 2.5.9.10348 GUI and running, works.

Generated at Wed Feb 07 21:36:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.