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

Commit cc5a2e9

Browse files
committed
re format
1 parent d4f0635 commit cc5a2e9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/ServiceStack.Text.Tests/JsonTests/CustomSerializerTests.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ public Test1(bool it, bool itm, bool itb, bool itbm)
136136
public void Can_Serialize_With_Custom_Constructor()
137137
{
138138
bool hit = false;
139-
JsConfig.ModelFactory = type => {
139+
JsConfig.ModelFactory = type =>
140+
{
140141
if (typeof(Test1) == type)
141142
{
142143
hit = true;
@@ -183,10 +184,12 @@ public DtoV1()
183184
[Test]
184185
public void Can_detect_dto_with_no_Version()
185186
{
186-
using (JsConfig.With(modelFactory:type => {
187+
using (JsConfig.With(modelFactory: type =>
188+
{
187189
if (typeof(IHasVersion).IsAssignableFrom(type))
188190
{
189-
return () => {
191+
return () =>
192+
{
190193
var obj = (IHasVersion)type.CreateInstance();
191194
obj.Version = 0;
192195
return obj;
@@ -234,7 +237,7 @@ public void Can_deserialize_json_with_underscores()
234237
}
235238
}
236239

237-
public class CustomSerailizerValueTypeTests
240+
public class CustomSerailizerValueTypeTests
238241
{
239242
[Ignore("Needs to clear dirty static element caches from other tests"), Test]
240243
public void Can_serialize_custom_doubles()
@@ -259,7 +262,7 @@ public void Can_serialize_custom_doubles()
259262
JsConfig.Reset();
260263
}
261264

262-
public class Model
265+
public class ModelInt
263266
{
264267
public int Int { get; set; }
265268
}
@@ -271,7 +274,7 @@ public void Can_serialize_custom_ints()
271274
JsConfig<int>.RawSerializeFn = i =>
272275
i == 0 ? "-1" : i.ToString();
273276

274-
var dto = new Model { Int = 0 };
277+
var dto = new ModelInt { Int = 0 };
275278

276279
using (JsConfig.With(includeNullValues: true))
277280
{

0 commit comments

Comments
 (0)