@@ -136,7 +136,8 @@ public Test1(bool it, bool itm, bool itb, bool itbm)
136
136
public void Can_Serialize_With_Custom_Constructor ( )
137
137
{
138
138
bool hit = false ;
139
- JsConfig . ModelFactory = type => {
139
+ JsConfig . ModelFactory = type =>
140
+ {
140
141
if ( typeof ( Test1 ) == type )
141
142
{
142
143
hit = true ;
@@ -183,10 +184,12 @@ public DtoV1()
183
184
[ Test ]
184
185
public void Can_detect_dto_with_no_Version ( )
185
186
{
186
- using ( JsConfig . With ( modelFactory : type => {
187
+ using ( JsConfig . With ( modelFactory : type =>
188
+ {
187
189
if ( typeof ( IHasVersion ) . IsAssignableFrom ( type ) )
188
190
{
189
- return ( ) => {
191
+ return ( ) =>
192
+ {
190
193
var obj = ( IHasVersion ) type . CreateInstance ( ) ;
191
194
obj . Version = 0 ;
192
195
return obj ;
@@ -234,7 +237,7 @@ public void Can_deserialize_json_with_underscores()
234
237
}
235
238
}
236
239
237
- public class CustomSerailizerValueTypeTests
240
+ public class CustomSerailizerValueTypeTests
238
241
{
239
242
[ Ignore ( "Needs to clear dirty static element caches from other tests" ) , Test ]
240
243
public void Can_serialize_custom_doubles ( )
@@ -259,7 +262,7 @@ public void Can_serialize_custom_doubles()
259
262
JsConfig . Reset ( ) ;
260
263
}
261
264
262
- public class Model
265
+ public class ModelInt
263
266
{
264
267
public int Int { get ; set ; }
265
268
}
@@ -271,7 +274,7 @@ public void Can_serialize_custom_ints()
271
274
JsConfig < int > . RawSerializeFn = i =>
272
275
i == 0 ? "-1" : i . ToString ( ) ;
273
276
274
- var dto = new Model { Int = 0 } ;
277
+ var dto = new ModelInt { Int = 0 } ;
275
278
276
279
using ( JsConfig . With ( includeNullValues : true ) )
277
280
{
0 commit comments