File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ <Solution >
2+ <Project Path =" TestDemo/TestDemo.csproj" />
3+ </Solution >
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments