public void TestCompareToBsonValue() { var other = new BsonInt32(1); var wrapper = new BsonDocumentWrapper(new BsonDocument("x", 1)); Assert.Equal(false, wrapper.IsMaterialized); var result = wrapper.CompareTo(other); Assert.Equal(true, wrapper.IsMaterialized); Assert.Equal(1, result); }