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

Commit fcd87ec

Browse files
committed
Remove uneccessary #if NETCORE
1 parent b8bf460 commit fcd87ec

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/ServiceStack.Text.Tests.NetCore/ServiceStack.Text.Tests/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"System.Drawing.Primitives" : "4.0.0",
3737
"System.Collections.Specialized": "4.0.1",
3838
"System.Runtime.Serialization.Json": "4.0.2",
39-
"System.Collections.NonGeneric": "4.0.1"
39+
"System.Collections.NonGeneric": "4.0.1",
40+
"System.Diagnostics.TraceSource": "4.0.0"
4041
}
4142
}
4243
}

tests/ServiceStack.Text.Tests/JsConfigTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,8 @@ private void AssertObjectJson()
147147

148148
private void AssertObjectJson(string traceFormat, string json)
149149
{
150-
#if !NETCORE
151150
Trace.WriteLine(string.Format(traceFormat, json));
152-
#endif
151+
153152
Assert.True(json.Contains("\"root_id\":100,"), AssertMessageFormat.Fmt("root_id"));
154153
Assert.True(json.Contains("\"display_name\":\"Test object\""), AssertMessageFormat.Fmt("display_name"));
155154
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public void Can_serialize_custom_ints()
277277
var dto = new ModelInt { Int = 0 };
278278

279279
using (JsConfig.With(includeNullValues: true))
280-
{
280+
{
281281
Assert.That(dto.ToJson(), Is.EqualTo("{\"Int\":-1}"));
282282
}
283283

0 commit comments

Comments
 (0)