Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit d02003d

Browse files
committed
fix test
1 parent 08442e0 commit d02003d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/ServiceStack.Text.Tests/Issues/JsConfigIssues.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ public void CallReset_AfterSerializingOnce_WithCustomSerializationForProperty_Do
3838
TestRoundTripValue(dto);
3939

4040
JsConfig.Reset();
41-
41+
4242
ConfigureCustomFormatType();
43+
JsConfig<Dto>.RefreshRead();
44+
4345
TestRoundTripValue(dto);
4446
}
4547

@@ -56,7 +58,7 @@ private static void TestRoundTripValue(Dto dto)
5658
{
5759
var json = dto.ToJson();
5860
var fromJson = json.FromJson<Dto>();
59-
Assert.AreEqual(dto.CustomFormatTypeProperty.Value, dto.CustomFormatTypeProperty.Value);
61+
Assert.That(fromJson.CustomFormatTypeProperty.Value, Is.EqualTo(dto.CustomFormatTypeProperty.Value));
6062
}
6163
}
6264
}

0 commit comments

Comments
 (0)