File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
tools/Tests/JsonUtilitiesTest Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ public void RemoveDefaultNullProperties_ShouldHandleNestedObjects()
5959 ""displayname"": ""Tim"",
6060 ""professions"": {
6161 },
62- ""passwordProfile "": {
63- ""password "": ""pass123 "",
64- ""forceChangePasswordNextSignIn "": false,
65- ""forcePassWitMfa "" : ""defaultnull""
62+ ""jobProfile "": {
63+ ""dept "": ""ICT "",
64+ ""manager "": false,
65+ ""supervisor "" : ""defaultnull""
6666 },
6767 ""metadata"": {
6868 ""phone"": ""defaultnull"",
@@ -82,7 +82,7 @@ public void RemoveDefaultNullProperties_ShouldHandleNestedObjects()
8282
8383 // Assert
8484 Assert . False ( result [ "metadata" ] ? . ToObject < JObject > ( ) ? . ContainsKey ( "phone" ) ) ;
85- Assert . Equal ( "pass123 " , result [ "passwordProfile " ] ? [ "password " ] ? . ToString ( ) ) ;
85+ Assert . Equal ( "ICT " , result [ "jobProfile " ] ? [ "dept " ] ? . ToString ( ) ) ;
8686 Assert . Equal ( "Nairobi" , result [ "metadata" ] ? [ "address" ] ? [ "city" ] ? . ToString ( ) ) ;
8787 Assert . Null ( result [ "metadata" ] ? [ "location" ] ? . Value < string > ( ) ) ;
8888 // Check if emptynested object is removed
You can’t perform that action at this time.
0 commit comments