Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

C# Fix LF Issue (updated compiled assembly) #572

Merged
merged 2 commits into from
Feb 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frameworks/csharp/nunit/Display.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static void Serialize(object obj, string label = "", string type = "LOG")

public static void Write(string type, string message, string label = "", string mode = "")
{
string line = String.Format("<{0}:{1}:{2}>{3}", type.ToUpper(), mode, label, FormatMessage(message));
string line = String.Format("\n<{0}:{1}:{2}>{3}", type.ToUpper(), mode, label, FormatMessage(message));
Console.WriteLine(line);
}

Expand Down
Binary file modified frameworks/csharp/nunit/bin/nunit-console-runner.dll
100755 → 100644
Binary file not shown.
Binary file modified frameworks/csharp/nunit/bin/nunit-console.exe
100755 → 100644
Binary file not shown.
27 changes: 27 additions & 0 deletions test/runners/csharp_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,33 @@ describe('c# runner', function() {
expect(buffer.stdout).to.contain("<PASSED::>");
done();
});

it('should have output format commands on independent lines', function(done) {
runner.run({
language: 'csharp',
solution: [
'public class Solution {}',
].join('\n'),
fixture: [
`using System;`,
`using NUnit.Framework;`,
``,
`[TestFixture]`,
`public class KataTestClass`,
`{`,
` [Test]`,
` public void Test()`,
` {`,
` Console.Write("foobar");`,
` Assert.AreEqual(true, false);`,
` }`,
`}`,
].join('\n')
}, function(buffer) {
expect(buffer.stdout).to.contain("\n<FAILED::>");
done();
});
});
});
});
});