xamarin-macios/tests/generator
Sebastien Pouliot 0922f354fe
[generator] Fix potential warnings/errors when `[Sealed]` is used on types. Fix #9065 (#9782)
Fix build warnings
```
build/mac/mobile/ReplayKit/RPScreenRecorder.g.cs(113,22): warning CS0628: 'RPScreenRecorder.RPScreenRecorder(IntPtr)': new protected member declared in sealed class
build/mac/full/ReplayKit/RPScreenRecorder.g.cs(113,22): warning CS0628: 'RPScreenRecorder.RPScreenRecorder(IntPtr)': new protected member declared in sealed class
```
which still happens even if we disable XM in `main` :|

Added generator test based on Whitney's test case from github issue

ref: https://github.com/xamarin/xamarin-macios/issues/9065
2020-10-05 22:01:36 -04:00
..
tests [generator] Handle inheriting the same member from multiple protocols. Fixes #6366. (#6961) 2019-09-11 05:12:43 -07:00
.gitignore
Asserts.cs
BGenTests.cs [generator] Fix potential warnings/errors when `[Sealed]` is used on types. Fix #9065 (#9782) 2020-10-05 22:01:36 -04:00
BGenTool.cs [tests] Make the .NET bgen tests actually reference the .NET BCL. (#9693) 2020-09-24 14:57:05 +02:00
ErrorTests.cs [tests] Make the .NET bgen tests actually reference the .NET BCL. (#9693) 2020-09-24 14:57:05 +02:00
GeneratorTests.cs
Makefile [tests] Fix running several test suites from the command line. Fixes xamarin/maccore@2279. (#9348) 2020-08-12 10:34:55 +02:00
NSApplicationPublicEnsureMethods.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
README.md
arrayfromhandlebug.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
bi1036.cs
bi1046.cs
bindas1048error.cs
bindas1049error.cs
bindas1050modelerror.cs
bindas1050protocolerror.cs
bindastests.cs
bmac-with-hyphen-in-name.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
bmac_smoke.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
btouch-with-hyphen-in-name.cs
bug15283.cs
bug15307.cs
bug15799.cs
bug16036.cs
bug17232.cs [tests] Make the .NET bgen tests actually reference the .NET BCL. (#9693) 2020-09-24 14:57:05 +02:00
bug23041.cs
bug24078-ignore-methods-events.cs
bug27428.cs
bug27430.cs
bug27986.cs
bug29493.cs
bug31788.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
bug34042.cs
bug35176.cs
bug36457.cs
bug37527-missing-property.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
bug37527-wrong-property.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
bug39614.cs
bug40282.cs
bug42742.cs
bug42855.cs
bug43579.cs
bug46292.cs
bug52570allowstaticmembers.cs
bug52570classinternal.cs
bug52570methodinternal.cs
bug53076.cs
bug53076withmodel.cs
bug57531.cs
bug57870.cs
classNameCollision-enum.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
classNameCollision.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
desk63279A.cs
desk63279B.cs
desk79124.cs
fieldenumtests.cs
forcedtype.cs
forum54078.cs
generator-tests.csproj [tests] Make the .NET bgen tests actually reference the .NET BCL. (#9693) 2020-09-24 14:57:05 +02:00
generic-strong-dictionary.cs
ghissue3869.cs
ghissue5416a.cs
ghissue5416b.cs
ghissue5444.cs
ghissue5692.cs
ghissue6626.cs [xcode11] [Generator] Do not used harcoded 'error' var name, use the one in the declaration. (#6637) 2019-07-24 13:28:07 +02:00
ghissue6863_method.cs [Generator] Provide clear error message on type mismatch with BindAs error (#7016) 2019-09-19 21:05:22 -04:00
ghissue6863_property.cs [Generator] Provide clear error message on type mismatch with BindAs error (#7016) 2019-09-19 21:05:22 -04:00
ghissue7304.cs [Generator] Allow 1 level nester classes. Fixes: #7304 (#7309) 2019-10-25 20:06:00 -04:00
ghissue9065.cs [generator] Fix potential warnings/errors when `[Sealed]` is used on types. Fix #9065 (#9782) 2020-10-05 22:01:36 -04:00
issue3875.cs
issue3875B.cs
issue3875C.cs
missing-export-property.cs
multiple-api-definitions1.cs
multiple-api-definitions2-a.cs
multiple-api-definitions2-b.cs
noasyncinternalwrapper.cs
noasyncwarningcs0219.cs
nowarn.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
property-redefination-ios.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
property-redefination-mac.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
protocol-duplicate-abstract-error.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
protocol-duplicate-abstract.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
protocol-duplicate-method-diff-length.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
protocol-duplicate-method-diff-out.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
protocol-duplicate-method-diff-return.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
protocol-duplicate-method-diff-type.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
smartenumwithframework.cs
sof20696157.cs [xcode11] Remove the WatchKit framework from iOS while keeping API stability. Fixes #6492. (#6503) 2019-08-14 17:46:55 +02:00
sof20696157.sh
strong-dict-native-enum.cs [generator] Add support for [Native] enums inside [StrongDictionaries] (#6763) 2019-08-13 18:36:36 -04:00
strong-dict-support-templated-dicts.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
virtualwrap.cs
warnaserror.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02: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.