Skip to content

Commit

Permalink
[Rgen] Set warnings to errors in the transformer tests. (#22086)
Browse files Browse the repository at this point in the history
Lets be strict in everythig we do, that includes tests. Set the warnings
to be errors and fix the one we had.
  • Loading branch information
mandel-macaque authored Jan 31, 2025
1 parent cd15f78 commit f3c4396
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
<DotnetBuildDirectory>build/dotnet</DotnetBuildDirectory>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.2"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0"/>
Expand Down

0 comments on commit f3c4396

Please sign in to comment.