-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from JanoPL/92-bug-exception-the-number-column…
…s-in-the-row-5-does-not-match-the-values-3 92 bug exception the number columns in the row 5 does not match the values 3
- Loading branch information
Showing
85 changed files
with
76,619 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
tests/RoutesList.Integration.RazorPages/RoutesList.Integration.RazorPages.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
|
||
<IsPackable>false</IsPackable> | ||
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" /> | ||
<PackageReference Include="xunit" /> | ||
<PackageReference Include="xunit.runner.visualstudio"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="coverlet.collector"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Using Include="Xunit" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\TestSites\TestSiteRazorPages\TestSiteRazorPages.csproj" /> | ||
<ProjectReference Include="..\Web.Application.Factory\Web.Application.Factory.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
31 changes: 31 additions & 0 deletions
31
tests/RoutesList.Integration.RazorPages/WebApplicationTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Web.Application.Factory; | ||
|
||
namespace RoutesList.Integration.RazorPages; | ||
|
||
public class WebApplicationTest | ||
{ | ||
|
||
private readonly CustomWebApplication<Program> _application; | ||
|
||
public WebApplicationTest() | ||
{ | ||
_application = new CustomWebApplication<Program>(); | ||
} | ||
|
||
[Theory] | ||
[InlineData("/", "text/html; charset=utf-8")] | ||
[InlineData("/Privacy", "text/html; charset=utf-8")] | ||
[InlineData("/routes", "text/html")] | ||
[InlineData("/routes/json", "application/json; charset=utf-8")] | ||
public async Task ResponseTest(string url, string contentType) | ||
{ | ||
using var client = _application.CreateClient(); | ||
using var response = await client.GetAsync(url); | ||
|
||
response.EnsureSuccessStatusCode(); | ||
Assert.Equal( | ||
contentType, | ||
response?.Content?.Headers?.ContentType?.ToString() | ||
); | ||
} | ||
} |
Oops, something went wrong.