From 174c535e764c8bb9111cddff48c39636f71780d3 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Thu, 10 Aug 2023 11:16:49 +0200 Subject: [PATCH] Fix tests --- tests/AllTestsWithTask/expected_results.json | 2 +- tests/CompileErrorWithoutLocation/expected_results.json | 5 ++--- tests/DifferentTypesOfTests/expected_results.json | 2 +- tests/DotnetFiveProject/expected_results.json | 2 +- tests/DotnetSixProject/expected_results.json | 2 +- tests/DownloadedSolution/expected_results.json | 2 +- tests/EditorFiles/expected_results.json | 2 +- tests/MultipleCompileErrors/expected_results.json | 5 ++--- tests/MultipleTestClassesWithAllPasses/expected_results.json | 2 +- tests/MultipleTestsWithAllPasses/expected_results.json | 2 +- tests/MultipleTestsWithMultipleFails/expected_results.json | 2 +- tests/MultipleTestsWithSingleFail/expected_results.json | 2 +- tests/MultipleTestsWithTestOutput/expected_results.json | 2 +- .../expected_results.json | 2 +- tests/NoTasks/expected_results.json | 2 +- tests/NoTests/expected_results.json | 5 ++--- tests/NotImplemented/expected_results.json | 2 +- tests/SingleCompileError/expected_results.json | 5 ++--- tests/SingleTestThatFails/expected_results.json | 2 +- tests/SingleTestThatPasses/expected_results.json | 2 +- .../expected_results.json | 2 +- tests/SomeTestsWithTask/expected_results.json | 2 +- tests/TestsInDifferentFormats/expected_results.json | 2 +- tests/UseCultureAttribute/expected_results.json | 2 +- tests/UseTimeZones/expected_results.json | 2 +- tests/WithConstructor/expected_results.json | 2 +- tests/WithDisposable/expected_results.json | 2 +- tests/WithExample/expected_results.json | 2 +- tests/WithNonTestClasses/expected_results.json | 2 +- tests/WithPrivateDisposableClasses/expected_results.json | 2 +- 30 files changed, 34 insertions(+), 38 deletions(-) diff --git a/tests/AllTestsWithTask/expected_results.json b/tests/AllTestsWithTask/expected_results.json index c7e6d26..6456d83 100644 --- a/tests/AllTestsWithTask/expected_results.json +++ b/tests/AllTestsWithTask/expected_results.json @@ -21,4 +21,4 @@ "test_code": "Assert.Equal(6, Fake.Mul(2, 3))" } ] -} \ No newline at end of file +} diff --git a/tests/CompileErrorWithoutLocation/expected_results.json b/tests/CompileErrorWithoutLocation/expected_results.json index eff396a..0288642 100644 --- a/tests/CompileErrorWithoutLocation/expected_results.json +++ b/tests/CompileErrorWithoutLocation/expected_results.json @@ -1,6 +1,5 @@ { "version": 3, "status": "error", - "message": "FakeTests.cs(31,1): error CS8805: Program using top-level statements must be an executable.", - "tests": [] -} \ No newline at end of file + "message": "FakeTests.cs(31,1): error CS8805: Program using top-level statements must be an executable." +} diff --git a/tests/DifferentTypesOfTests/expected_results.json b/tests/DifferentTypesOfTests/expected_results.json index 68e6c1f..bdf4ab9 100644 --- a/tests/DifferentTypesOfTests/expected_results.json +++ b/tests/DifferentTypesOfTests/expected_results.json @@ -30,4 +30,4 @@ "test_code": "Prop.Throws\u003CDivideByZeroException, int\u003E(new Lazy\u003Cint\u003E(() =\u003E x / 0))" } ] -} \ No newline at end of file +} diff --git a/tests/DotnetFiveProject/expected_results.json b/tests/DotnetFiveProject/expected_results.json index 56365e0..24c081e 100644 --- a/tests/DotnetFiveProject/expected_results.json +++ b/tests/DotnetFiveProject/expected_results.json @@ -8,4 +8,4 @@ "test_code": "Assert.Equal(2, Fake.Add(1, 1))" } ] -} \ No newline at end of file +} diff --git a/tests/DotnetSixProject/expected_results.json b/tests/DotnetSixProject/expected_results.json index 56365e0..24c081e 100644 --- a/tests/DotnetSixProject/expected_results.json +++ b/tests/DotnetSixProject/expected_results.json @@ -8,4 +8,4 @@ "test_code": "Assert.Equal(2, Fake.Add(1, 1))" } ] -} \ No newline at end of file +} diff --git a/tests/DownloadedSolution/expected_results.json b/tests/DownloadedSolution/expected_results.json index 56365e0..24c081e 100644 --- a/tests/DownloadedSolution/expected_results.json +++ b/tests/DownloadedSolution/expected_results.json @@ -8,4 +8,4 @@ "test_code": "Assert.Equal(2, Fake.Add(1, 1))" } ] -} \ No newline at end of file +} diff --git a/tests/EditorFiles/expected_results.json b/tests/EditorFiles/expected_results.json index c3293fb..2a50d76 100644 --- a/tests/EditorFiles/expected_results.json +++ b/tests/EditorFiles/expected_results.json @@ -8,4 +8,4 @@ "test_code": "FakeTestsHelper.AssertAdd(2, 1, 1)" } ] -} \ No newline at end of file +} diff --git a/tests/MultipleCompileErrors/expected_results.json b/tests/MultipleCompileErrors/expected_results.json index f65e4d6..07a4842 100644 --- a/tests/MultipleCompileErrors/expected_results.json +++ b/tests/MultipleCompileErrors/expected_results.json @@ -1,6 +1,5 @@ { "version": 3, "status": "error", - "message": "FakeTests.cs(6,66): error CS0117: \u0027Fake\u0027 does not contain a definition for \u0027Add\u0027\nFakeTests.cs(8,66): error CS0117: \u0027Fake\u0027 does not contain a definition for \u0027Sub\u0027", - "tests": [] -} \ No newline at end of file + "message": "FakeTests.cs(6,66): error CS0117: \u0027Fake\u0027 does not contain a definition for \u0027Add\u0027\nFakeTests.cs(8,66): error CS0117: \u0027Fake\u0027 does not contain a definition for \u0027Sub\u0027" +} diff --git a/tests/MultipleTestClassesWithAllPasses/expected_results.json b/tests/MultipleTestClassesWithAllPasses/expected_results.json index b262652..1b0aa13 100644 --- a/tests/MultipleTestClassesWithAllPasses/expected_results.json +++ b/tests/MultipleTestClassesWithAllPasses/expected_results.json @@ -28,4 +28,4 @@ "test_code": "Assert.Equal(\u0022hello\u0022, Foo.Lower(\u0022HELLO\u0022))" } ] -} \ No newline at end of file +} diff --git a/tests/MultipleTestsWithAllPasses/expected_results.json b/tests/MultipleTestsWithAllPasses/expected_results.json index daae437..fc63147 100644 --- a/tests/MultipleTestsWithAllPasses/expected_results.json +++ b/tests/MultipleTestsWithAllPasses/expected_results.json @@ -18,4 +18,4 @@ "test_code": "Assert.Equal(6, Fake.Mul(2, 3))" } ] -} \ No newline at end of file +} diff --git a/tests/MultipleTestsWithMultipleFails/expected_results.json b/tests/MultipleTestsWithMultipleFails/expected_results.json index b485340..ae755bd 100644 --- a/tests/MultipleTestsWithMultipleFails/expected_results.json +++ b/tests/MultipleTestsWithMultipleFails/expected_results.json @@ -20,4 +20,4 @@ "test_code": "Assert.Equal(7, Fake.Mul(2, 3))" } ] -} \ No newline at end of file +} diff --git a/tests/MultipleTestsWithSingleFail/expected_results.json b/tests/MultipleTestsWithSingleFail/expected_results.json index b8c4557..eb12208 100644 --- a/tests/MultipleTestsWithSingleFail/expected_results.json +++ b/tests/MultipleTestsWithSingleFail/expected_results.json @@ -19,4 +19,4 @@ "test_code": "Assert.Equal(5, Fake.Mul(2, 3))" } ] -} \ No newline at end of file +} diff --git a/tests/MultipleTestsWithTestOutput/expected_results.json b/tests/MultipleTestsWithTestOutput/expected_results.json index ffe7907..b999f31 100644 --- a/tests/MultipleTestsWithTestOutput/expected_results.json +++ b/tests/MultipleTestsWithTestOutput/expected_results.json @@ -21,4 +21,4 @@ "test_code": "Assert.Equal(7, Fake.Mul(2, 3))" } ] -} \ No newline at end of file +} diff --git a/tests/MultipleTestsWithTestOutputExceedingLimit/expected_results.json b/tests/MultipleTestsWithTestOutputExceedingLimit/expected_results.json index 0ca7130..71318a4 100644 --- a/tests/MultipleTestsWithTestOutputExceedingLimit/expected_results.json +++ b/tests/MultipleTestsWithTestOutputExceedingLimit/expected_results.json @@ -21,4 +21,4 @@ "test_code": "Assert.Equal(7, Fake.Mul(2, 3))" } ] -} \ No newline at end of file +} diff --git a/tests/NoTasks/expected_results.json b/tests/NoTasks/expected_results.json index daae437..fc63147 100644 --- a/tests/NoTasks/expected_results.json +++ b/tests/NoTasks/expected_results.json @@ -18,4 +18,4 @@ "test_code": "Assert.Equal(6, Fake.Mul(2, 3))" } ] -} \ No newline at end of file +} diff --git a/tests/NoTests/expected_results.json b/tests/NoTests/expected_results.json index 21cface..3bf367c 100644 --- a/tests/NoTests/expected_results.json +++ b/tests/NoTests/expected_results.json @@ -1,5 +1,4 @@ { "version": 3, - "status": "error", - "tests": [] -} \ No newline at end of file + "status": "error" +} diff --git a/tests/NotImplemented/expected_results.json b/tests/NotImplemented/expected_results.json index edce11c..c948e7d 100644 --- a/tests/NotImplemented/expected_results.json +++ b/tests/NotImplemented/expected_results.json @@ -9,4 +9,4 @@ "test_code": "Assert.Equal(3, Fake.Add(1, 1))" } ] -} \ No newline at end of file +} diff --git a/tests/SingleCompileError/expected_results.json b/tests/SingleCompileError/expected_results.json index 38e2f28..4042c62 100644 --- a/tests/SingleCompileError/expected_results.json +++ b/tests/SingleCompileError/expected_results.json @@ -1,6 +1,5 @@ { "version": 3, "status": "error", - "message": "Fake.cs(3,49): error CS1002: ; expected", - "tests": [] -} \ No newline at end of file + "message": "Fake.cs(3,49): error CS1002: ; expected" +} diff --git a/tests/SingleTestThatFails/expected_results.json b/tests/SingleTestThatFails/expected_results.json index 04eaccf..98e61e8 100644 --- a/tests/SingleTestThatFails/expected_results.json +++ b/tests/SingleTestThatFails/expected_results.json @@ -9,4 +9,4 @@ "test_code": "Assert.Equal(3, Fake.Add(1, 1))" } ] -} \ No newline at end of file +} diff --git a/tests/SingleTestThatPasses/expected_results.json b/tests/SingleTestThatPasses/expected_results.json index 56365e0..24c081e 100644 --- a/tests/SingleTestThatPasses/expected_results.json +++ b/tests/SingleTestThatPasses/expected_results.json @@ -8,4 +8,4 @@ "test_code": "Assert.Equal(2, Fake.Add(1, 1))" } ] -} \ No newline at end of file +} diff --git a/tests/SingleTestThatPassesWithDifferentSlug/expected_results.json b/tests/SingleTestThatPassesWithDifferentSlug/expected_results.json index 42decf6..e478ae2 100644 --- a/tests/SingleTestThatPassesWithDifferentSlug/expected_results.json +++ b/tests/SingleTestThatPassesWithDifferentSlug/expected_results.json @@ -8,4 +8,4 @@ "test_code": "Assert.Equal(2, Foo.Add(1, 1))" } ] -} \ No newline at end of file +} diff --git a/tests/SomeTestsWithTask/expected_results.json b/tests/SomeTestsWithTask/expected_results.json index 13262e1..c81e8d2 100644 --- a/tests/SomeTestsWithTask/expected_results.json +++ b/tests/SomeTestsWithTask/expected_results.json @@ -20,4 +20,4 @@ "test_code": "Assert.Equal(6, Fake.Mul(2, 3))" } ] -} \ No newline at end of file +} diff --git a/tests/TestsInDifferentFormats/expected_results.json b/tests/TestsInDifferentFormats/expected_results.json index cdb5d37..995a07c 100644 --- a/tests/TestsInDifferentFormats/expected_results.json +++ b/tests/TestsInDifferentFormats/expected_results.json @@ -28,4 +28,4 @@ "test_code": "var x = Fake.Mul(2, 3);\r\nvar y = Fake.Mul(2, 4);\r\nAssert.Equal(6, x);\r\nAssert.Equal(8, y);" } ] -} \ No newline at end of file +} diff --git a/tests/UseCultureAttribute/expected_results.json b/tests/UseCultureAttribute/expected_results.json index c90e2bd..9c4d91e 100644 --- a/tests/UseCultureAttribute/expected_results.json +++ b/tests/UseCultureAttribute/expected_results.json @@ -18,4 +18,4 @@ "test_code": "Assert.Equal(\u0022$1,000.00\u0022, Fake.Format(1000))" } ] -} \ No newline at end of file +} diff --git a/tests/UseTimeZones/expected_results.json b/tests/UseTimeZones/expected_results.json index 3bb3223..bad8d5d 100644 --- a/tests/UseTimeZones/expected_results.json +++ b/tests/UseTimeZones/expected_results.json @@ -23,4 +23,4 @@ "test_code": "Assert.Contains(Fake.GetTimeZones(), tz =\u003E tz.Id == ParisTimeZone)" } ] -} \ No newline at end of file +} diff --git a/tests/WithConstructor/expected_results.json b/tests/WithConstructor/expected_results.json index 2b6cf83..b2ffbe8 100644 --- a/tests/WithConstructor/expected_results.json +++ b/tests/WithConstructor/expected_results.json @@ -8,4 +8,4 @@ "test_code": "Assert.Equal(2, new Fake().Add(1, 1))" } ] -} \ No newline at end of file +} diff --git a/tests/WithDisposable/expected_results.json b/tests/WithDisposable/expected_results.json index 2b6cf83..b2ffbe8 100644 --- a/tests/WithDisposable/expected_results.json +++ b/tests/WithDisposable/expected_results.json @@ -8,4 +8,4 @@ "test_code": "Assert.Equal(2, new Fake().Add(1, 1))" } ] -} \ No newline at end of file +} diff --git a/tests/WithExample/expected_results.json b/tests/WithExample/expected_results.json index 56365e0..24c081e 100644 --- a/tests/WithExample/expected_results.json +++ b/tests/WithExample/expected_results.json @@ -8,4 +8,4 @@ "test_code": "Assert.Equal(2, Fake.Add(1, 1))" } ] -} \ No newline at end of file +} diff --git a/tests/WithNonTestClasses/expected_results.json b/tests/WithNonTestClasses/expected_results.json index 23e9f8f..0d41466 100644 --- a/tests/WithNonTestClasses/expected_results.json +++ b/tests/WithNonTestClasses/expected_results.json @@ -8,4 +8,4 @@ "test_code": "_numberComparer.Compare(2, FakeHelper.AddOne(1))" } ] -} \ No newline at end of file +} diff --git a/tests/WithPrivateDisposableClasses/expected_results.json b/tests/WithPrivateDisposableClasses/expected_results.json index 1eebb43..519d853 100644 --- a/tests/WithPrivateDisposableClasses/expected_results.json +++ b/tests/WithPrivateDisposableClasses/expected_results.json @@ -8,4 +8,4 @@ "test_code": "var disposableResource = new DisposableResource();\r\nAssert.Throws\u003CException\u003E(() =\u003E Fake.DisposableResourcesAreDisposedWhenExceptionIsThrown(disposableResource));\r\nAssert.True(disposableResource.IsDisposed);" } ] -} \ No newline at end of file +}