Sfoglia il codice sorgente

Fix tests that rely on nullability to be preserved on non-public types.

Eric Erhardt 5 anni fa
parent
commit
28c70138b2

+ 2 - 0
src/Mvc/Mvc.DataAnnotations/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test.csproj

@@ -3,6 +3,8 @@
   <PropertyGroup>
     <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
     <UseSharedCompilation>false</UseSharedCompilation>
+    <!-- This project has tests that rely on nullability on non-public types. Undo nullablePublicOnly configured by default -->
+    <Features>$(Features.Replace('nullablePublicOnly', ''))</Features>
   </PropertyGroup>
 
   <ItemGroup>

+ 2 - 0
src/Mvc/test/Mvc.IntegrationTests/Microsoft.AspNetCore.Mvc.IntegrationTests.csproj

@@ -3,6 +3,8 @@
   <PropertyGroup>
     <TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
     <UseSharedCompilation>false</UseSharedCompilation>
+    <!-- This project has tests that rely on nullability on non-public types. Undo nullablePublicOnly configured by default -->
+    <Features>$(Features.Replace('nullablePublicOnly', ''))</Features>
   </PropertyGroup>
 
   <ItemGroup>