✅ Ready to clone and code.
This commit is contained in:
committed by
github-actions[bot]
parent
6639ef82ae
commit
683b03ffe0
26
TextParser.Tests/TextParser.Tests.csproj
Normal file
26
TextParser.Tests/TextParser.Tests.csproj
Normal 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>
|
||||
14
TextParser.Tests/UnitTest1.cs
Normal file
14
TextParser.Tests/UnitTest1.cs
Normal 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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user