xamarin-macios/tests/generator
Rolf Bjarne Kvinge c59ee63e3f
[bgen] Fix assembly comparison. Fixes #19612. (#19619)
This fixes a regression in .NET 8, where we changed the temporary assembly name when
building using a project file / MSBuild - we started compiling the temporary binding
code in MSBuild instead of in the generator, and in the process we changed the name
of the temporary assembly. This broke logic in bgen that compared the assembly name
to check if a given type is from the temporary assembly or not.

Fix this by checking the actual temporary assembly instead of the name of the assembly
instead.

Fixes https://github.com/xamarin/xamarin-macios/issues/19612.
2023-12-14 15:15:01 +01:00
..
tests [generator] Honor [Internal] on delegates. Fixes #15299. (#19038) 2023-09-18 23:37:27 +02:00
.gitignore
Asserts.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
AttributeFactoryTests.cs [Generator] Clean the attribute work. (#17570) 2023-03-23 16:54:08 -04:00
BGenTests.cs [bgen] Fix assembly comparison. Fixes #19612. (#19619) 2023-12-14 15:15:01 +01:00
BGenTool.cs [bgen] Fix assembly comparison. Fixes #19612. (#19619) 2023-12-14 15:15:01 +01:00
CollectionsExtensionsTests.cs [Generator] Refactor AsyncMethodInfo, set nullability and add collection extensions. (#17538) 2023-02-16 08:47:28 -05:00
ConstructorArgumentsTests.cs [tests] Remove files from the generator tests to fix compiler warnings. (#18092) 2023-04-20 07:34:30 +02:00
ErrorTests.cs [Generator] Clean the AttributeManager from deps and fix a bug in the errors. (#19532) 2023-12-04 07:08:16 -05:00
GeneratorTests.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
Makefile [tests] Request labels after each test from NUnit. (#14628) 2022-04-04 19:19:45 +02:00
NSApplicationPublicEnsureMethods.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
NomenclatorTests.cs [Generator] Clean the AttributeManager from deps and fix a bug in the errors. (#19532) 2023-12-04 07:08:16 -05:00
NullabilityContextTests.cs Change all null checking expressions to use 'is' and 'is not'. (#18176) 2023-05-05 17:52:19 +02:00
PlatformNameExtensionsTests.cs [Generator] Move the most of the path logic out of BT. (#19429) 2023-11-15 16:38:48 -05:00
README.md
ReflectionTest.cs Change all null checking expressions to use 'is' and 'is not'. (#18176) 2023-05-05 17:52:19 +02:00
StringExtensionTests.cs [Generator] Refactor Format Type methods into TypeManager class (#19331) 2023-11-01 09:40:00 -07:00
arrayfromhandlebug.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bi1036.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bi1042.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bi1046.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bi1059.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bindas1048error.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bindas1049error.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bindas1050modelerror.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bindas1050protocolerror.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bindastests.cs [runtime/generator] Add support for BindAs with CMVideoDimensions. (#17308) 2023-01-25 15:34:28 +01:00
bmac-with-hyphen-in-name.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bmac_smoke.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
btouch-with-hyphen-in-name.cs
bug15283.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug15307.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug15799.cs
bug16036.cs
bug17232.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug18025.cs [bgen] Check for null (no) namespace when matching namespace to framework. Fixes #18025. (#18046) 2023-04-14 08:27:16 +02:00
bug23041.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug24078-ignore-methods-events.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug27428.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug27430.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug27986.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug29493.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug31788.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug34042.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug35176.cs [src/generator] Stop implying Mac Catalyst availability attributes from the iOS attributes. (#17375) 2023-01-31 14:51:53 +01:00
bug36457.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug37527-missing-property.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug37527-wrong-property.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug39614.cs
bug40282.cs
bug42742.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug42855.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug43579.cs
bug46292.cs
bug52570allowstaticmembers.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug52570classinternal.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug52570methodinternal.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug53076.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug53076withmodel.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
bug57531.cs
bug57870.cs
classNameCollision-enum.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
classNameCollision.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
desk63279A.cs
desk63279B.cs
desk79124.cs
fieldenumtests.cs
forcedtype.cs
forum54078.cs
generator-tests.csproj Get Mono.Cecil from NuGet everywhere. (#19535) 2023-12-04 20:15:03 +01:00
generic-strong-dictionary.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
ghissue3869.cs
ghissue5416a.cs
ghissue5416b.cs
ghissue5444.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
ghissue5692.cs
ghissue6626.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
ghissue6863_method.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
ghissue6863_property.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
ghissue7304.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
ghissue9065.cs
ghissue18645.cs [Generator] Ensure that selectors fields do not have overlapping names. Fixes #18645 (#18646) 2023-08-08 09:25:21 -04:00
issue3875.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
issue3875B.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
issue3875C.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
issue19612.cs [bgen] Fix assembly comparison. Fixes #19612. (#19619) 2023-12-14 15:15:01 +01:00
missing-export-property.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
multiple-api-definitions1.cs
multiple-api-definitions2-a.cs
multiple-api-definitions2-b.cs
noasyncinternalwrapper.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
noasyncwarningcs0219.cs
nowarn.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
property-redefination-ios.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
property-redefination-mac.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
protocol-duplicate-abstract-error.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
protocol-duplicate-abstract.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
protocol-duplicate-method-diff-length.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
protocol-duplicate-method-diff-out.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
protocol-duplicate-method-diff-return.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
protocol-duplicate-method-diff-type.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
smartenumwithframework.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
sof20696157.cs [src] Make all generated P/Invokes use blittable signatures. Fixes #18685. (#19034) 2023-09-19 10:41:46 +02:00
sof20696157.sh
strong-dict-native-enum.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
strong-dict-support-templated-dicts.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
virtualwrap.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -05:00
warnaserror.cs [autoformat] Add generator tests. (#16800) 2022-11-17 17:04:21 -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.