Skip to content

Commit

Permalink
Merge pull request #79 from Kentico/GH-74-add-xunit-framefork/FB
Browse files Browse the repository at this point in the history
GH-74 add xunit framefork/fb
  • Loading branch information
dominikag2 authored Oct 10, 2024
2 parents 5d7b05d + a228f0d commit 1688acb
Show file tree
Hide file tree
Showing 10 changed files with 2,285 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="AspNetCore.Unobtrusive.Ajax" Version="2.0.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageVersion>
<PackageVersion Include="Enums.NET" Version="4.0.2" />
<PackageVersion Include="kentico.xperience.admin" Version="29.2.0" />
<PackageVersion Include="kentico.xperience.azurestorage" Version="29.2.0" />
<PackageVersion Include="kentico.xperience.imageprocessing" Version="29.2.0" />
<PackageVersion Include="kentico.xperience.webapp" Version="29.2.0" />
<PackageVersion Include="Kentico.Xperience.Core" Version="29.2.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="Moq" Version="4.20.70" />
<PackageVersion Include="xunit" Version="2.9.0" />
<PackageVersion Include="xunit.abstractions" Version="2.0.3" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageVersion>
</ItemGroup>
</Project>
12 changes: 12 additions & 0 deletions src/TrainingGuides.Admin.Tests/Pages/SampleTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace TrainingGuides.Admin.Tests.Pages;

public class SampleTest
{

[Fact]
public void SampleTest_Works()
{
string a = string.Empty;
Assert.Equal(string.Empty, a);
}
}
35 changes: 35 additions & 0 deletions src/TrainingGuides.Admin.Tests/TrainingGuides.Admin.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<Using Include="Xunit" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\TrainingGuides.Admin\TrainingGuides.Admin.csproj" />
<ProjectReference Include="..\TrainingGuides.Entities\TrainingGuides.Entities.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.visualstudio">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

</Project>
Loading

0 comments on commit 1688acb

Please sign in to comment.