Skip to content

Commit 277e11e

Browse files
committed
Added xUnit project
1 parent f7f65c7 commit 277e11e

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

Pricely.Tests/Pricely.Tests.csproj

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<IsPackable>false</IsPackable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="AwesomeAssertions" Version="8.0.1" />
12+
<PackageReference Include="AwesomeAssertions.Json" Version="8.0.0" />
13+
<PackageReference Include="coverlet.collector" Version="6.0.2" />
14+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
15+
<PackageReference Include="xunit" Version="2.9.2" />
16+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<Using Include="Xunit" />
21+
</ItemGroup>
22+
23+
<ItemGroup>
24+
<Folder Include="PricelyAPI\" />
25+
</ItemGroup>
26+
27+
</Project>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace Pricely.Tests.PricelyWeb.Services.PriceRunner
8+
{
9+
10+
//Not finished yet
11+
public class PriceRunnerServiceTests
12+
{
13+
14+
15+
[Fact]
16+
public void X()
17+
{
18+
19+
}
20+
}
21+
}

Pricely.Tests/UnitTest1.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using FluentAssertions;
2+
3+
namespace Pricely.Tests
4+
{
5+
public class UnitTest1
6+
{
7+
[Fact]
8+
public void Test1()
9+
{
10+
11+
12+
}
13+
}
14+
}

Pricely.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PricelyWeb.Services", "Pric
1313
EndProject
1414
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pricely.Libraries.Shared", "Pricely.Libraries.Shared\Pricely.Libraries.Shared.csproj", "{C174DD3A-EFBB-4E11-A7F9-C9857CB2A937}"
1515
EndProject
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pricely.Tests", "Pricely.Tests\Pricely.Tests.csproj", "{0B0FCDDE-95FA-478E-A3FC-5F59B982D657}"
17+
EndProject
1618
Global
1719
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1820
Debug|Any CPU = Debug|Any CPU
@@ -39,6 +41,10 @@ Global
3941
{C174DD3A-EFBB-4E11-A7F9-C9857CB2A937}.Debug|Any CPU.Build.0 = Debug|Any CPU
4042
{C174DD3A-EFBB-4E11-A7F9-C9857CB2A937}.Release|Any CPU.ActiveCfg = Release|Any CPU
4143
{C174DD3A-EFBB-4E11-A7F9-C9857CB2A937}.Release|Any CPU.Build.0 = Release|Any CPU
44+
{0B0FCDDE-95FA-478E-A3FC-5F59B982D657}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
45+
{0B0FCDDE-95FA-478E-A3FC-5F59B982D657}.Debug|Any CPU.Build.0 = Debug|Any CPU
46+
{0B0FCDDE-95FA-478E-A3FC-5F59B982D657}.Release|Any CPU.ActiveCfg = Release|Any CPU
47+
{0B0FCDDE-95FA-478E-A3FC-5F59B982D657}.Release|Any CPU.Build.0 = Release|Any CPU
4248
EndGlobalSection
4349
GlobalSection(SolutionProperties) = preSolution
4450
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)