File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
specifications/bson-corpus/tests
src/MongoDB.Bson/ObjectModel
tests/MongoDB.Bson.Tests/IO Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 55
55
"canonical_bson" : " 1D000000057800100000000773FFD26444B34C6990E8E7D1DFC035D400" ,
56
56
"canonical_extjson" : " {\" x\" : { \" $binary\" : {\" base64\" : \" c//SZESzTGmQ6OfR38A11A==\" , \" subType\" : \" 07\" }}}"
57
57
},
58
+ {
59
+ "description" : " subtype 0x08" ,
60
+ "canonical_bson" : " 1D000000057800100000000873FFD26444B34C6990E8E7D1DFC035D400" ,
61
+ "canonical_extjson" : " {\" x\" : { \" $binary\" : {\" base64\" : \" c//SZESzTGmQ6OfR38A11A==\" , \" subType\" : \" 08\" }}}"
62
+ },
58
63
{
59
64
"description" : " subtype 0x80" ,
60
65
"canonical_bson" : " 0F0000000578000200000080FFFF00" ,
Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ public enum BsonBinarySubType
57
57
/// </summary>
58
58
Column = 0x07 ,
59
59
/// <summary>
60
+ /// Sensitive data.
61
+ /// </summary>
62
+ Sensitive = 0x08 ,
63
+ /// <summary>
60
64
/// User defined binary data.
61
65
/// </summary>
62
66
UserDefined = 0x80
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ public void BackpatchSize_should_throw_when_stream_is_null()
108
108
[ InlineData ( 5 , BsonBinarySubType . MD5 ) ]
109
109
[ InlineData ( 6 , BsonBinarySubType . Encrypted ) ]
110
110
[ InlineData ( 7 , BsonBinarySubType . Column ) ]
111
+ [ InlineData ( 8 , BsonBinarySubType . Sensitive ) ]
111
112
[ InlineData ( 0x80 , BsonBinarySubType . UserDefined ) ]
112
113
public void ReadBinarySubType_should_return_expected_result ( int n , BsonBinarySubType expectedResult )
113
114
{
@@ -497,6 +498,7 @@ public void static_constructor_should_initialize_validBsonTypes()
497
498
[ InlineData ( BsonBinarySubType . MD5 , 5 ) ]
498
499
[ InlineData ( BsonBinarySubType . Encrypted , 6 ) ]
499
500
[ InlineData ( BsonBinarySubType . Column , 7 ) ]
501
+ [ InlineData ( BsonBinarySubType . Sensitive , 8 ) ]
500
502
[ InlineData ( BsonBinarySubType . UserDefined , 0x80 ) ]
501
503
public void WriteBinarySubType_should_have_expected_effect (
502
504
BsonBinarySubType value ,
You can’t perform that action at this time.
0 commit comments