From 34e8bf41612a34a86910d98ecf71fc522670b864 Mon Sep 17 00:00:00 2001 From: Manuel de la Pena Saenz Date: Fri, 31 Jan 2025 07:06:47 -0500 Subject: [PATCH] [Rgen] Set warnings to errors in the transformer tests. Lets be strict in everythig we do, that includes tests. Set the warnings to be errors and fix the one we had. --- .../Attributes/StrongDictionaryDataTests.cs | 2 +- .../Microsoft.Macios.Transformer.Tests.csproj | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/rgen/Microsoft.Macios.Transformer.Tests/Attributes/StrongDictionaryDataTests.cs b/tests/rgen/Microsoft.Macios.Transformer.Tests/Attributes/StrongDictionaryDataTests.cs index 5f08fa0dcf2..2428c0efb32 100644 --- a/tests/rgen/Microsoft.Macios.Transformer.Tests/Attributes/StrongDictionaryDataTests.cs +++ b/tests/rgen/Microsoft.Macios.Transformer.Tests/Attributes/StrongDictionaryDataTests.cs @@ -34,7 +34,7 @@ interface AVCapturePhotoSettingsThumbnailFormat { } "; - yield return [(Source: strongDictionary, Path: "/some/random/path.cs"), new StrongDictionaryData ("AVCapturePhotoSettingsThumbnailFormatKeys")]; + yield return [(Source: strongDictionary, Path: path), new StrongDictionaryData ("AVCapturePhotoSettingsThumbnailFormatKeys")]; } IEnumerator IEnumerable.GetEnumerator () => GetEnumerator (); diff --git a/tests/rgen/Microsoft.Macios.Transformer.Tests/Microsoft.Macios.Transformer.Tests.csproj b/tests/rgen/Microsoft.Macios.Transformer.Tests/Microsoft.Macios.Transformer.Tests.csproj index cd4733a2875..a284060e039 100644 --- a/tests/rgen/Microsoft.Macios.Transformer.Tests/Microsoft.Macios.Transformer.Tests.csproj +++ b/tests/rgen/Microsoft.Macios.Transformer.Tests/Microsoft.Macios.Transformer.Tests.csproj @@ -11,6 +11,14 @@ build/dotnet + + true + + + + true + +