Skip to content

Commit b3a2de6

Browse files
authored
CSHARP-5262: Add support for TimeOnly (fixed test) (#1485)
1 parent d4ffe76 commit b3a2de6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/MongoDB.Bson.Tests/Serialization/Serializers/TimeOnlySerializerTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ public void Attribute_should_set_correct_units()
4747

4848
var json = testObj.ToJson();
4949

50-
var expected = "{ \"Hours\" : NumberLong(13), "
51-
+ "\"Minutes\" : NumberLong(804), "
52-
+ "\"Seconds\" : NumberLong(48293), "
53-
+ "\"Milliseconds\" : NumberLong(48293000), "
54-
+ "\"Microseconds\" : NumberLong(\"48293000000\"), "
55-
+ "\"Ticks\" : NumberLong(\"482930000000\"), "
56-
+ "\"Nanoseconds\" : NumberLong(\"48293000000000\") }";
50+
var expected = "{ \"Hours\" : 13, "
51+
+ "\"Minutes\" : 804, "
52+
+ "\"Seconds\" : 48293, "
53+
+ "\"Milliseconds\" : 48293000, "
54+
+ "\"Microseconds\" : 48293000000, "
55+
+ "\"Ticks\" : 482930000000, "
56+
+ "\"Nanoseconds\" : 48293000000000 }";
5757
Assert.Equal(expected, json);
5858
}
5959

0 commit comments

Comments
 (0)