-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support errors without location (#59)
- Loading branch information
1 parent
cc37841
commit b51a8f4
Showing
9 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...TestRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/.meta/Example.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
public static class Fake | ||
{ | ||
public static int Add(int x, int y) => x + y; | ||
} |
7 changes: 7 additions & 0 deletions
7
...estRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/.meta/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"files": { | ||
"solution": ["Fake.cs"], | ||
"test": ["FakeTests.cs"], | ||
"example": [".meta/Example.cs"] | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
...Exercism.TestRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/Fake.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
public static class Fake | ||
{ | ||
public static int Add(int x, int y) => x + y; | ||
} |
18 changes: 18 additions & 0 deletions
18
...cism.TestRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/Fake.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Remove="Example.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" /> | ||
<PackageReference Include="xunit" Version="2.4.1" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" /> | ||
<PackageReference Include="Exercism.Tests" Version="0.1.0-alpha" /> | ||
</ItemGroup> | ||
|
||
</Project> |
11 changes: 11 additions & 0 deletions
11
...ism.TestRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/FakeTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Xunit; | ||
public class FakeTests | ||
{ | ||
[Fact] | ||
public void Add_should_add_numbers() => Assert.Equal(2, Fake.Add(1, 1)); | ||
} | ||
|
||
public FakeHelper | ||
{ | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
...unner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/expected_results.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"version": 3, | ||
"status": "error", | ||
"message": "error CS8805: Program using top-level statements must be an executable.", | ||
"tests": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters