Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Aug 10, 2023
1 parent c7c1e84 commit 174c535
Show file tree
Hide file tree
Showing 30 changed files with 34 additions and 38 deletions.
2 changes: 1 addition & 1 deletion tests/AllTestsWithTask/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"test_code": "Assert.Equal(6, Fake.Mul(2, 3))"
}
]
}
}
5 changes: 2 additions & 3 deletions tests/CompileErrorWithoutLocation/expected_results.json
Original file line number Diff line number Diff line change
@@ -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": []
}
"message": "FakeTests.cs(31,1): error CS8805: Program using top-level statements must be an executable."
}
2 changes: 1 addition & 1 deletion tests/DifferentTypesOfTests/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
"test_code": "Prop.Throws\u003CDivideByZeroException, int\u003E(new Lazy\u003Cint\u003E(() =\u003E x / 0))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/DotnetFiveProject/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"test_code": "Assert.Equal(2, Fake.Add(1, 1))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/DotnetSixProject/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"test_code": "Assert.Equal(2, Fake.Add(1, 1))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/DownloadedSolution/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"test_code": "Assert.Equal(2, Fake.Add(1, 1))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/EditorFiles/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"test_code": "FakeTestsHelper.AssertAdd(2, 1, 1)"
}
]
}
}
5 changes: 2 additions & 3 deletions tests/MultipleCompileErrors/expected_results.json
Original file line number Diff line number Diff line change
@@ -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": []
}
"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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
"test_code": "Assert.Equal(\u0022hello\u0022, Foo.Lower(\u0022HELLO\u0022))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/MultipleTestsWithAllPasses/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"test_code": "Assert.Equal(6, Fake.Mul(2, 3))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/MultipleTestsWithMultipleFails/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
"test_code": "Assert.Equal(7, Fake.Mul(2, 3))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/MultipleTestsWithSingleFail/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
"test_code": "Assert.Equal(5, Fake.Mul(2, 3))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/MultipleTestsWithTestOutput/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"test_code": "Assert.Equal(7, Fake.Mul(2, 3))"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"test_code": "Assert.Equal(7, Fake.Mul(2, 3))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/NoTasks/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"test_code": "Assert.Equal(6, Fake.Mul(2, 3))"
}
]
}
}
5 changes: 2 additions & 3 deletions tests/NoTests/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"version": 3,
"status": "error",
"tests": []
}
"status": "error"
}
2 changes: 1 addition & 1 deletion tests/NotImplemented/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"test_code": "Assert.Equal(3, Fake.Add(1, 1))"
}
]
}
}
5 changes: 2 additions & 3 deletions tests/SingleCompileError/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"version": 3,
"status": "error",
"message": "Fake.cs(3,49): error CS1002: ; expected",
"tests": []
}
"message": "Fake.cs(3,49): error CS1002: ; expected"
}
2 changes: 1 addition & 1 deletion tests/SingleTestThatFails/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"test_code": "Assert.Equal(3, Fake.Add(1, 1))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/SingleTestThatPasses/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"test_code": "Assert.Equal(2, Fake.Add(1, 1))"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"test_code": "Assert.Equal(2, Foo.Add(1, 1))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/SomeTestsWithTask/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
"test_code": "Assert.Equal(6, Fake.Mul(2, 3))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/TestsInDifferentFormats/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -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);"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/UseCultureAttribute/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"test_code": "Assert.Equal(\u0022$1,000.00\u0022, Fake.Format(1000))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/UseTimeZones/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"test_code": "Assert.Contains(Fake.GetTimeZones(), tz =\u003E tz.Id == ParisTimeZone)"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/WithConstructor/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"test_code": "Assert.Equal(2, new Fake().Add(1, 1))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/WithDisposable/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"test_code": "Assert.Equal(2, new Fake().Add(1, 1))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/WithExample/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"test_code": "Assert.Equal(2, Fake.Add(1, 1))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/WithNonTestClasses/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"test_code": "_numberComparer.Compare(2, FakeHelper.AddOne(1))"
}
]
}
}
2 changes: 1 addition & 1 deletion tests/WithPrivateDisposableClasses/expected_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"test_code": "var disposableResource = new DisposableResource();\r\nAssert.Throws\u003CException\u003E(() =\u003E Fake.DisposableResourcesAreDisposedWhenExceptionIsThrown(disposableResource));\r\nAssert.True(disposableResource.IsDisposed);"
}
]
}
}

0 comments on commit 174c535

Please sign in to comment.