@@ -130,7 +130,7 @@ public void Can_Deserialize_List_of_Guid()
130
130
{
131
131
Guid ID1 = new Guid ( "b0e5c11f-e944-478c-aadd-753b956d0c8c" ) ;
132
132
Guid ID2 = new Guid ( "809399fa-21c4-4dca-8dcd-34cb697fbca0" ) ;
133
- var data = new JsonObject ( ) ;
133
+ var data = new JsonObject ( ) ;
134
134
data [ "Ids" ] = new JsonArray ( ) { ID1 , ID2 } ;
135
135
136
136
var d = new JsonDeserializer ( ) ;
@@ -632,6 +632,8 @@ public void Can_Deserialize_To_Dictionary_String_String_With_Dynamic_Values ()
632
632
Assert . Equal ( "{\" Name\" :\" ThingBlue\" ,\" Color\" :\" Blue\" }" , bd [ "ThingBlue" ] ) ;
633
633
}
634
634
635
+ < << << << HEAD
636
+ < < << << < HEAD
635
637
[ Fact ]
636
638
public void Can_Deserialize_Decimal_With_Four_Zeros_After_Floating_Point ( )
637
639
{
@@ -643,6 +645,14 @@ public void Can_Deserialize_Decimal_With_Four_Zeros_After_Floating_Point()
643
645
Assert . Equal ( result . Value , .00005557m ) ;
644
646
}
645
647
648
+ [ Fact ]
649
+ public void Can_Deserialize_Object_Type_Property_With_Primitive_Vale ( )
650
+ {
651
+ var payload = GetPayLoad < ObjectProperties > ( "objectproperty.txt" ) ;
652
+
653
+ Assert . Equal ( 42L , payload . ObjectProperty ) ;
654
+ }
655
+
646
656
private string CreateJsonWithUnderscores ( )
647
657
{
648
658
var doc = new JsonObject ( ) ;
@@ -657,11 +667,11 @@ private string CreateJsonWithUnderscores()
657
667
doc [ "url" ] = "http://example.com" ;
658
668
doc [ "url_path" ] = "/foo/bar" ;
659
669
660
-
670
+
661
671
doc [ "best_friend" ] = new JsonObject {
662
- { "name" , "The Fonz" } ,
672
+ { "name" , "The Fonz" } ,
663
673
{ "since" , 1952 }
664
- } ;
674
+ } ;
665
675
666
676
var friendsArray = new JsonArray ( ) ;
667
677
for ( int i = 0 ; i < 10 ; i ++ )
@@ -677,7 +687,7 @@ private string CreateJsonWithUnderscores()
677
687
var foesArray = new JsonObject {
678
688
{ "dict1" , new JsonObject { { "nickname" , "Foe 1" } } } ,
679
689
{ "dict2" , new JsonObject { { "nickname" , "Foe 2" } } }
680
- } ;
690
+ } ;
681
691
682
692
doc [ "foes" ] = foesArray ;
683
693
0 commit comments