Skip to content

Commit

Permalink
Add unit test project
Browse files Browse the repository at this point in the history
  • Loading branch information
ArttuOll committed Dec 2, 2023
1 parent a5cd923 commit 2ccde72
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
14 changes: 14 additions & 0 deletions AdventOfCode.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AdventOfCode", "AdventOfCod
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FBE09BBA-34E4-4DED-94F2-44217330E37F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdventOfCodeTests", "AdventOfCodeTests\AdventOfCodeTests.csproj", "{9EC52D75-7380-4E11-94C6-BDF512DD518E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -29,6 +31,18 @@ Global
{6B01383F-FF08-4839-BF44-2DE9071CCC37}.Release|x64.Build.0 = Release|Any CPU
{6B01383F-FF08-4839-BF44-2DE9071CCC37}.Release|x86.ActiveCfg = Release|Any CPU
{6B01383F-FF08-4839-BF44-2DE9071CCC37}.Release|x86.Build.0 = Release|Any CPU
{9EC52D75-7380-4E11-94C6-BDF512DD518E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9EC52D75-7380-4E11-94C6-BDF512DD518E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9EC52D75-7380-4E11-94C6-BDF512DD518E}.Debug|x64.ActiveCfg = Debug|Any CPU
{9EC52D75-7380-4E11-94C6-BDF512DD518E}.Debug|x64.Build.0 = Debug|Any CPU
{9EC52D75-7380-4E11-94C6-BDF512DD518E}.Debug|x86.ActiveCfg = Debug|Any CPU
{9EC52D75-7380-4E11-94C6-BDF512DD518E}.Debug|x86.Build.0 = Debug|Any CPU
{9EC52D75-7380-4E11-94C6-BDF512DD518E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9EC52D75-7380-4E11-94C6-BDF512DD518E}.Release|Any CPU.Build.0 = Release|Any CPU
{9EC52D75-7380-4E11-94C6-BDF512DD518E}.Release|x64.ActiveCfg = Release|Any CPU
{9EC52D75-7380-4E11-94C6-BDF512DD518E}.Release|x64.Build.0 = Release|Any CPU
{9EC52D75-7380-4E11-94C6-BDF512DD518E}.Release|x86.ActiveCfg = Release|Any CPU
{9EC52D75-7380-4E11-94C6-BDF512DD518E}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
26 changes: 26 additions & 0 deletions AdventOfCodeTests/AdventOfCodeTests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

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

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

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

</Project>
9 changes: 9 additions & 0 deletions AdventOfCodeTests/Day02.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace TestProject1;

public class Day02
{
[Fact]
public void Test1()
{
}
}
1 change: 1 addition & 0 deletions AdventOfCodeTests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global using Xunit;

0 comments on commit 2ccde72

Please sign in to comment.