diff --git a/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/expected_results.json b/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/expected_results.json index a090ed4..eff396a 100644 --- a/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/expected_results.json +++ b/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/expected_results.json @@ -1,6 +1,6 @@ { "version": 3, "status": "error", - "message": "error CS8805: Program using top-level statements must be an executable.", + "message": "FakeTests.cs(31,1): error CS8805: Program using top-level statements must be an executable.", "tests": [] } \ No newline at end of file diff --git a/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/WithDisposable/FakeTests.cs b/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/WithDisposable/FakeTests.cs index 4bfc655..3aa3b5c 100644 --- a/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/WithDisposable/FakeTests.cs +++ b/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/WithDisposable/FakeTests.cs @@ -9,7 +9,7 @@ public class FakeTests : IDisposable public FakeTests() { - _file = File.Open("tmp.txt", FileMode.Create); + _file = File.Open(Path.GetTempFileName(), FileMode.Create); } [Fact]