-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backend.Tests: add ex marshalling new formats
Somehow, in master branch (where we use runs-on: windows-latest instead of windows-2019), the exception marshalling unit tests started failing; maybe because of some update from Microsoft of the v4.x .NET framework. This commit makes these tests compatible with the new format (master branch), while keeping the old format intact (stable branch), and hoping that the new .NET6 migration will match one. Co-authored-by: Andres G. Aragoneses <[email protected]>
- Loading branch information
Showing
11 changed files
with
159 additions
and
19 deletions.
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
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
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
13 changes: 13 additions & 0 deletions
13
src/GWallet.Backend.Tests/data/customFSharpException_legacy.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,13 @@ | ||
{ | ||
"Version": "{version}", | ||
"TypeName": "GWallet.Backend.MarshalledException", | ||
"Value": { | ||
"HumanReadableSummary": { | ||
"ExceptionType": "GWallet.Backend.Tests.CustomFSharpException", | ||
"Message": "Exception of type 'GWallet.Backend.Tests.CustomFSharpException' was thrown.", | ||
"StackTrace": "", | ||
"InnerException": null | ||
}, | ||
"FullBinaryForm": "{binaryMarshalledException}" | ||
} | ||
} |
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
23 changes: 23 additions & 0 deletions
23
src/GWallet.Backend.Tests/data/fullException_unixLegacy.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,23 @@ | ||
{ | ||
"Version": "{version}", | ||
"TypeName": "GWallet.Backend.MarshalledException", | ||
"Value": { | ||
"HumanReadableSummary": { | ||
"ExceptionType": "GWallet.Backend.Tests.CustomException", | ||
"Message": "msg", | ||
"StackTrace": " at GWallet.Backend.Tests.ExceptionMarshalling.SerializeFullException () [0x00016] in {prjDirAbsolutePath}/ExceptionMarshalling.fs:line 65", | ||
"InnerException": { | ||
"Case": "Some", | ||
"Fields": [ | ||
{ | ||
"ExceptionType": "GWallet.Backend.Tests.CustomException", | ||
"Message": "innerMsg", | ||
"StackTrace": "", | ||
"InnerException": null | ||
} | ||
] | ||
} | ||
}, | ||
"FullBinaryForm": "{binaryMarshalledException}" | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/GWallet.Backend.Tests/data/fullException_windowsLegacy.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,23 @@ | ||
{ | ||
"Version": "{version}", | ||
"TypeName": "GWallet.Backend.MarshalledException", | ||
"Value": { | ||
"HumanReadableSummary": { | ||
"ExceptionType": "GWallet.Backend.Tests.CustomException", | ||
"Message": "msg", | ||
"StackTrace": " at GWallet.Backend.Tests.ExceptionMarshalling.SerializeFullException() in D:\\a\\geewallet\\geewallet\\src\\GWallet.Backend.Tests\\ExceptionMarshalling.fs:line 65", | ||
"InnerException": { | ||
"Case": "Some", | ||
"Fields": [ | ||
{ | ||
"ExceptionType": "GWallet.Backend.Tests.CustomException", | ||
"Message": "innerMsg", | ||
"StackTrace": "", | ||
"InnerException": null | ||
} | ||
] | ||
} | ||
}, | ||
"FullBinaryForm": "{binaryMarshalledException}" | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
src/GWallet.Backend.Tests/data/realException_unixLegacy.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,13 @@ | ||
{ | ||
"Version": "{version}", | ||
"TypeName": "GWallet.Backend.MarshalledException", | ||
"Value": { | ||
"HumanReadableSummary": { | ||
"ExceptionType": "System.Exception", | ||
"Message": "msg", | ||
"StackTrace": " at GWallet.Backend.Tests.ExceptionMarshalling.can serialize real exceptions () [0x0000c] in {prjDirAbsolutePath}/ExceptionMarshalling.fs:line 42", | ||
"InnerException": null | ||
}, | ||
"FullBinaryForm": "{binaryMarshalledException}" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/GWallet.Backend.Tests/data/realException_windowsLegacy.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,13 @@ | ||
{ | ||
"Version": "{version}", | ||
"TypeName": "GWallet.Backend.MarshalledException", | ||
"Value": { | ||
"HumanReadableSummary": { | ||
"ExceptionType": "System.Exception", | ||
"Message": "msg", | ||
"StackTrace": " at GWallet.Backend.Tests.ExceptionMarshalling.SerializeRealException() in D:\\a\\geewallet\\geewallet\\src\\GWallet.Backend.Tests\\ExceptionMarshalling.fs:line 42", | ||
"InnerException": null | ||
}, | ||
"FullBinaryForm": "{binaryMarshalledException}" | ||
} | ||
} |