init current

This commit is contained in:
Claudiu Farcas
2022-12-14 20:34:09 +02:00
commit cb1aeea711
150 changed files with 19361 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
namespace day06.test;
using FluentAssertions;
public class UnitTestProblem
{
[Fact]
public void TestProblem1()
{
var problem = new Problem();
problem.ResolvePart1("testdata.txt");
problem.Result1.Should().Be("7,5,6,10,11");
}
[Fact]
public void TestProblem2()
{
var problem = new Problem();
problem.ResolvePart2("testdata.txt");
problem.Result2.Should().Be("19,23,23,29,26");
}
}
+1
View File
@@ -0,0 +1 @@
global using Xunit;
+32
View File
@@ -0,0 +1,32 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../day06/day06.csproj" />
<Content Include="testdata.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.8.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<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="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
</Project>
+5
View File
@@ -0,0 +1,5 @@
mjqjpqmgbljsphdztnvjfqwrcgsmlb
bvwbjplbgvbhsrlpgdmjqwftvncz
nppdvjthqldpwncqszvftbrmjlhg
nznrnfrfntjfmvfwmzdfjlvtqnbhcprsg
zcfzfwzzqfrljwzlrfnpqdbhtmscgvjw