xamarin-macios/tests/mtouch
Sebastien Pouliot 2be35fb1c8
[mtouch][mmp] Share error.cs and make it safer against FormatException (#8047)
* [mtouch][mmp] Share error.cs and make it safer against FormatException

Beside the obvious code sharing [1] this makes the error reporting code
safer against `FormatException`.

Even with code review this happened a few times in the past - we get
a string that can't format correctly in some error handling code. This
means the `FormatException` must be fixed before we can see the
underlying root issue (delaying bug fixes and support).

Recent changes made for localization makes it harder to review the
original strings (and even harder for translated strings) for
correctness. This means we can end up with something like

```
String.Format ("{0} {1}", "foo");
``

and easily miss it (since they split between different files) if there
are several changes inside a PR.

Finally sprinkle some unit tests :)

[1] we should move everything to use `ProductException` but that will be
for another PR...
2020-03-06 09:34:16 -05:00
..
.gitignore [tests] Automatically build the mtouch test assembly when needed. (#5496) 2019-01-28 15:05:42 +01:00
Cache.cs [mtouch tests] Add Cache. 2017-01-05 10:43:55 +01:00
ErrorTest.cs [mtouch][mmp] Share error.cs and make it safer against FormatException (#8047) 2020-03-06 09:34:16 -05:00
InlinerTest.cs [linker] Add an well known candidate inliner substep along with tests (#1513) 2017-01-17 21:49:44 -05:00
LinkerTests.cs [tests] Share supporting code between the mtouch and mmp tests. (#3374) 2018-02-02 07:09:04 +01:00
MLaunchTool.cs Implement a different escaping/quoting algorithm for arguments to System.Diagnostics.Process. (#7177) 2019-10-14 16:18:46 +02:00
MTouch.cs [mtouch] Add `force-rejected-types-removal` optimization (#8009) 2020-03-02 09:20:29 -05:00
MTouchTool.cs Implement a different escaping/quoting algorithm for arguments to System.Diagnostics.Process. (#7177) 2019-10-14 16:18:46 +02:00
Makefile Bump to mono:2019-06 (#6196) 2019-07-16 17:24:00 +02:00
MiscTests.cs [tests] Fix Xamarin.Tests.Misc.PublicSymbols after recent changes in our native code. (#7312) 2019-10-28 10:40:53 -04:00
MonoNativeTests.cs Implement a different escaping/quoting algorithm for arguments to System.Diagnostics.Process. (#7177) 2019-10-14 16:18:46 +02:00
RegistrarTest.cs [Localization] mtouch/mmp C# (#7710) 2020-01-31 15:02:52 -05:00
RuntimeException.cs [tests] Re-use tools/common/MachO.cs in mtouch/mmp tests. 2019-02-07 15:58:36 +01:00
SdkTest.cs Bump to mono:2019-10 (#7192) 2019-12-04 15:10:32 -05:00
StringUtilsTest.cs [mtouch][mmp] Allow the use of major-only version numbers in arguments. Fixes #60280 (#3029) 2017-11-23 11:16:30 -05:00
TimingTests.cs [tests] Share supporting code between the mtouch and mmp tests. (#3374) 2018-02-02 07:09:04 +01:00
ToolTasksBinPathTest.cs [msbuild] Provide the correct value for the operating system for tvOS and watchOS to a few tasks. Fixes #6200. (#7226) 2019-10-16 22:14:11 +02:00
mtouch.csproj [mtouch][mmp] Share error.cs and make it safer against FormatException (#8047) 2020-03-06 09:34:16 -05:00
mtouch.sln Switch to mono archive and remove submodule 2019-05-21 22:16:02 +02:00
packages.config Implement a different escaping/quoting algorithm for arguments to System.Diagnostics.Process. (#7177) 2019-10-14 16:18:46 +02:00