Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Commit

Permalink
use proper newline in unit test
Browse files Browse the repository at this point in the history
Windows uses `\r\n` while other platforms use `\n`
  • Loading branch information
natsuo committed Oct 15, 2018
1 parent f80822c commit 1b5de1d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Miqo.Config.Tests/MiqoConfigTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void Load_CanReadValidString()
.Load()
.ApplicationSettings()
.FromString<ConfigClasses.ConfigurationDb>(json);

Assert.Equal("localhost", config.ConnectionString);
}

Expand Down Expand Up @@ -51,7 +51,12 @@ public void ToString_CanSerializeValidJson_WhenValidConfiguration()
public void ToString_DropsPropertyFromJson_WhenNullValue()
{
var expectedJson =
"{\r\n \"title\": \"The Enemy Within\",\r\n \"season\": 1,\r\n \"episode\": 3,\r\n \"airedOn\": null\r\n}";
"{" + Environment.NewLine
+ " \"title\": \"The Enemy Within\"," + Environment.NewLine
+ " \"season\": 1," + Environment.NewLine
+ " \"episode\": 3," + Environment.NewLine
+ " \"airedOn\": null" + Environment.NewLine
+ "}";

var expected = new ConfigClasses.Configuration
{
Expand Down

0 comments on commit 1b5de1d

Please sign in to comment.