xamarin-macios/tests/generator
Alex Soto dc1b5746eb [generator] Fix smart enum FieldAttribute LibraryName generation (#2376)
This fix is needed by PDFKit because it is a remapped framework[0],
the current code generates incorrect FieldAttribute on smart enums
because it uses `fa.LibraryName` as first option and this causes
remmaped frameworks have incorrect LibraryName generated for example
if a Field uses `+CoreImage` as `LibraryName` the following incorrect
code is generated:

```
	[Field ("First", "+CoreImage")]
	internal unsafe static IntPtr First {
		get {
			fixed (IntPtr *storage = &values [0])
				return Dlfcn.CachePointer (Libraries.+CoreImage.Handle, "First", storage);
		}
	}
```

[0]: f5956d6cc1/src/generator.cs (L5985)
2017-07-26 18:09:42 -05:00
..
.gitignore [tests] Import 2016-05-26 15:06:52 +02:00
BGenTool.cs [generator] Add unit test project, and port a few tests over from the makefile tests. (#2299) (#2304) 2017-07-11 08:52:24 +02:00
ErrorTests.cs [generator] Add unit test project, and port a few tests over from the makefile tests. (#2299) (#2304) 2017-07-11 08:52:24 +02:00
Makefile [generator] Fix smart enum FieldAttribute LibraryName generation (#2376) 2017-07-26 18:09:42 -05:00
NSApplicationPublicEnsureMethods.cs [tests] Import 2016-05-26 15:06:52 +02:00
README.md [tests] Import 2016-05-26 15:06:52 +02:00
arrayfromhandlebug.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bi1036.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bi1046.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bindas1048error.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bindas1049error.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bindas1050modelerror.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bindas1050protocolerror.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bindastests.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bmac-with-hyphen-in-name.cs [tests] Import 2016-05-26 15:06:52 +02:00
bmac_smoke.cs [tests] Import 2016-05-26 15:06:52 +02:00
btouch-with-hyphen-in-name.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug15283.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug15307.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug15799.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug16036.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug17232.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug23041.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug24078-ignore-methods-events.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug27428.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug27430.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug27986.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug29493.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug31788.cs [tests] Import 2016-05-26 15:06:52 +02:00
bug34042.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug35176.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug36457.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug37527-missing-property.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug37527-wrong-property.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug39614.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug40282.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug42742.cs [generator] The [Advice] attribute doesn't make it to the generated code. Fixes #42742 (#1887) 2017-03-21 09:20:05 -06:00
bug42855.cs [generator] Fixes bug 42855 generator should report an error for [Protocol] without a [Model] that specify a [BaseType] (#1859) 2017-03-10 09:52:32 -06:00
bug43579.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug46292.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
bug52570allowstaticmembers.cs [generator] Fixes bug 52570 - [generator] warn when [Static] is used in a [Category] (#1862) 2017-03-14 13:03:13 -06:00
bug52570classinternal.cs [generator] Fixes bug 52570 - [generator] warn when [Static] is used in a [Category] (#1862) 2017-03-14 13:03:13 -06:00
bug52570methodinternal.cs [generator] Fixes bug 52570 - [generator] warn when [Static] is used in a [Category] (#1862) 2017-03-14 13:03:13 -06:00
bug53076.cs [generator] Turn [Async] methods inside [Protocol] into extension methods 2017-03-25 00:25:45 -06:00
bug53076withmodel.cs [generator] Remove [Async] members from [Model] classes, fixes bug 53076. 2017-03-25 00:35:36 -06:00
bug57070.cs [generator] Improve error reporting for api definition that uses the deprecated availability attributes. Fixes #57070. (#2166) 2017-06-02 18:31:10 +02:00
classNameCollision-enum.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
classNameCollision.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
desk63279A.cs [tests] Import 2016-05-26 15:06:52 +02:00
desk63279B.cs [tests] Import 2016-05-26 15:06:52 +02:00
desk79124.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
fieldenumtests.cs [generator] Add enum support for [FieldAttribute], Fixes 57537 and 57535. (#2230) 2017-06-20 13:46:00 -05:00
forcedtype.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
forum54078.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
generator-tests.csproj [generator] Add unit test project, and port a few tests over from the makefile tests. (#2299) (#2304) 2017-07-11 08:52:24 +02:00
multiple-api-definitions1.cs [tests] Import 2016-05-26 15:06:52 +02:00
multiple-api-definitions2-a.cs [tests] Import 2016-05-26 15:06:52 +02:00
multiple-api-definitions2-b.cs [tests] Import 2016-05-26 15:06:52 +02:00
noasyncinternalwrapper.cs [generator] Remove Async members from internal BaseWrapper derived types 2017-03-24 17:40:55 -06:00
noasyncwarningcs0219.cs [generator] Disable CS0219 when using AsyncAttribute to avoid warning 2017-03-24 21:08:40 -06:00
nowarn.cs [generator] Fix bug 52573 - Add nowarn and warnaserror to btouch/bmac (#1882) 2017-03-22 07:52:24 -05:00
packages.config [generator] Add unit test project, and port a few tests over from the makefile tests. (#2299) (#2304) 2017-07-11 08:52:24 +02:00
property-redefination-ios.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
property-redefination-mac.cs [tests] Import 2016-05-26 15:06:52 +02:00
protocol-duplicate-abstract-error.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
protocol-duplicate-abstract.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
protocol-duplicate-method-diff-length.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
protocol-duplicate-method-diff-out.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
protocol-duplicate-method-diff-return.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
protocol-duplicate-method-diff-type.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
smartenumwithframework.cs [generator] Fix smart enum FieldAttribute LibraryName generation (#2376) 2017-07-26 18:09:42 -05:00
sof20696157.cs [generator] Keep [NotImplemented] info so it is usable in 3rd party bindings. Fixes bug 52664 (#2131) 2017-05-25 14:42:25 -05:00
sof20696157.sh [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
strong-dict-support-templated-dicts.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
virtualwrap.cs [tests][generator] Port XI/Classic tests to XI/Unified. (#1745) 2017-02-22 16:47:11 +01:00
warnaserror.cs [generator] Fix bug 52573 - Add nowarn and warnaserror to btouch/bmac (#1882) 2017-03-22 07:52:24 -05:00

README.md

Tests for the binding generator

New test

  • Create a C# file with the api definition.
  • Add the C# file to the Makefile, like all the other tests. Remember to add it to the 'all' target.