xamarin-macios/tests/common
monojenkins daf5006281 [d16-2] [msbuild] Add reference to `System.Drawing.Common.dll` to XI projects. (#6035)
* [msbuild] Add reference to `System.Drawing.Common.dll` to XI projects.

Fixes https://github.com/mono/mono/issues/13483 :

```
@akoeplinger: Since we moved types from Mono.Android.dll and
Xamarin.iOS/WatchOS/TVOS.dll to System.Drawing.Common.dll user projects
would fail to compile. We need to add some msbuild logic to add a
reference to the assembly automatically.
```

* [msbuild] Implement the same fix for XM projects as well.

* [msbuild] Update Xamarin.iOS.Tasks.TargetTests.GetReferencedAssemblies_* tests.

We're including a new assembly, which means the
Xamarin.iOS.Tasks.TargetTests.GetReferencedAssemblies_* must be updated
accordingly.

Also modify these tests so that test assert that fails lists the actual
assembly that's missing, i.e. instead of this:

    1) Test Failure : Xamarin.iOS.Tasks.TargetTests.GetReferencedAssemblies_Executable
         #1
      Expected: 6
      But was:  7

we now print:

    1) Test Failure : Xamarin.iOS.Tasks.TargetTests.GetReferencedAssemblies_Executable
         References
      Expected: equivalent to < "mscorlib.dll", "MyLibrary.dll", "System.Core.dll", "System.dll", "System.Xml.dll", "Xamarin.iOS.dll" >
      But was:  < "mscorlib.dll", "MyLibrary.dll", "System.Core.dll", "System.dll", "System.Drawing.Common.dll", "System.Xml.dll", "Xamarin.iOS.dll" >

* [tests] Adjust Xamarin.MMP.Tests.AssemblyReferencesTests.ShouldNotAllowReference_ToSystemDrawing.

The test was verifying that referencing System.Drawing.dll and trying to use
System.Drawing.RectangleF would fail to compile (because System.Drawing.dll
shouldn't be resolved in this case).

The addition of System.Drawing.Common.dll breaks this assumption, because now
we ship System.Drawing.RectangleF, so the code that was supposed to fail to
compile works just fine instead.

So modify the test to verify that there's no System.Drawing.dll in the final
bundle.

* Remove workarounds for mono/mono#13483.

* [msbuild] Create a way out if automatically referencing System.Drawing.Common.dll causes problems.

* [msbuild] Adjust variable name and boolean logic according to review.
2019-05-10 16:16:01 +02:00
..
mac [d16-2] [msbuild] Add reference to `System.Drawing.Common.dll` to XI projects. (#6035) 2019-05-10 16:16:01 +02:00
ApiTest.cs [tests] Augment the AlwaysOptimizable test to ensure methods that call Runtime.DynamicRegistrationSupported are also optimizable. 2018-02-15 10:23:26 +01:00
Assert.cs [tests] Import 2016-05-26 15:06:52 +02:00
AssertHelpers.cs [tests] Specify ordinal string comparison for a few string operations. (#1406) 2016-12-23 17:07:18 +01:00
BundlerTest.cs Add support for delegates as return values in protocol members. Fixes #4102. (#4758) 2018-09-06 16:20:23 +02:00
BundlerTool.cs tests: Default to using csc instead of mcs 2019-03-25 19:56:27 +01:00
ConditionalCompilation.cs [msbuild] Don't define __IOS__ for tvOS binding projects (#2274) 2017-06-30 12:35:48 -04:00
Configuration.cs Merge pull request #5563 from xamarin/mono-2019-02 2019-04-25 19:24:35 +02:00
ExecutionHelper.cs [tests] Add sample tester. (#5870) 2019-04-25 17:18:43 +02:00
MixedClassLibrary.dll [macos] Error when linking mix-mode assemblies (#2911) 2017-11-16 09:18:18 -06:00
MonoNativeConfig.cs [xharness] Some style/debug fixes. 2019-02-11 13:49:38 +01:00
PlatformInfo.cs [tests] Create 'link all' and 'link sdk' tests for XM. (#3234) 2018-01-16 19:15:59 +01:00
ProductTests.cs Merge remote-tracking branch 'origin/master' into mono-2018-10 2019-03-01 09:35:53 +01:00
Profile.cs [tests] Share supporting code between the mtouch and mmp tests. (#3374) 2018-02-02 07:09:04 +01:00
TestRuntime.cs Merge branch 'xcode10.2' into master-merge-xcode10.2 2019-04-03 13:57:31 -04:00