Ready to clone and code.

This commit is contained in:
simon
2024-12-01 10:26:44 +00:00
committed by github-actions[bot]
parent 6639ef82ae
commit 683b03ffe0
16 changed files with 29 additions and 118 deletions

View File

@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../TextParser/TextParser.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
</ItemGroup>
<ItemGroup>
<Using Include="Xunit" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,14 @@
namespace TextParser.Tests;
using TextParser;
public class UnitTest1
{
[Fact]
public void Test1()
{
var hwp = new HelloWorldProvider();
Assert.Equal("Hello, Simon!", hwp.GetHelloWorld("Simon"));
Assert.Equal("Hello world!", hwp.GetHelloWorld());
}
}