Skip to content

Commit 99ae990

Browse files
committed
added tunit
1 parent 54e5188 commit 99ae990

4 files changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"generator":{
3+
"name":"TUnit",
4+
"nuget":[
5+
"https://www.nuget.org/packages/TUnit/"
6+
],
7+
"link":"https://github.com/thomhurst/TUnit",
8+
"author":"Tom Longhurst",
9+
"source":"https://github.com/thomhurst/TUnit"
10+
},
11+
"data":{
12+
"goodFor":["Writing unit tests"],
13+
"csprojDemo":"TestDemo.csproj",
14+
"csFiles":["FirstTest.cs"],
15+
"excludeDirectoryGenerated":[""],
16+
"includeAdditionalFiles":[""]
17+
},
18+
"links":{
19+
"blog":"",
20+
"video":""
21+
}
22+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Solution>
2+
<Project Path="TestDemo/TestDemo.csproj" />
3+
</Solution>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace TestDemo;
2+
3+
4+
public class FirstTest
5+
{
6+
[Test]
7+
public async Task Add_WithTwoNumbers_ReturnsSum()
8+
{
9+
var result = true;
10+
// Assert
11+
await Assert.That(result).IsTrue();
12+
}
13+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net10.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="TUnit" Version="1.2.11" />
12+
</ItemGroup>
13+
14+
<PropertyGroup>
15+
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
16+
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
17+
</PropertyGroup>
18+
</Project>

0 commit comments

Comments
 (0)