File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,13 +13,14 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
1313dotnet build src --configuration Release
1414
1515# Run all tests
16- dotnet test src --configuration Release
16+ dotnet test --project src/DiffEngine.Tests --configuration Release
17+ dotnet test --project src/DiffEngineTray.Tests --configuration Release
1718
18- # Run a single test file
19- dotnet test src/DiffEngine.Tests --filter " FullyQualifiedName~ClassName"
19+ # Run a single test project with filter
20+ dotnet test --project src/DiffEngine.Tests --configuration Release --filter " FullyQualifiedName~ClassName"
2021
2122# Run a specific test
22- dotnet test src/DiffEngine.Tests --filter " FullyQualifiedName=DiffEngine.Tests.ClassName.TestMethod"
23+ dotnet test --project src/DiffEngine.Tests --configuration Release --filter " FullyQualifiedName=DiffEngine.Tests.ClassName.TestMethod"
2324```
2425
2526** SDK Requirements:** .NET 10 SDK (see ` src/global.json ` ). The project uses preview/prerelease SDK features.
@@ -66,4 +67,4 @@ DiffEngine is a library that manages launching and cleanup of diff tools for sna
6667- Tool discovery uses wildcard path matching (` WildcardFileFinder ` ) to find executables in common install locations
6768- Tool order can be customized via ` DiffEngine_ToolOrder ` environment variable
6869- ` DisabledChecker ` respects ` DiffEngine_Disabled ` env var
69- - Tests use xUnit and Verify for snapshot testing
70+ - Tests use TUnit and Verify for snapshot testing
Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ public async Task EnvPath()
9494 {
9595 var found = OsSettingsResolver . TryFindInEnvPath ( "cmd.exe" , out var filePath ) ;
9696 await Assert . That ( found ) . IsTrue ( ) ;
97- // TODO: TUnit migration - xUnit Assert.Equal had additional argument(s) (ignoreCase: true) that could not be converted.
9897 await Assert . That ( filePath ) . IsEqualTo ( @"C:\Windows\System32\cmd.exe" ) ;
9998 }
10099
@@ -125,7 +124,6 @@ public async Task EnvVar()
125124 out var filePath ,
126125 out _ ) ;
127126 await Assert . That ( found ) . IsTrue ( ) ;
128- // TODO: TUnit migration - xUnit Assert.Equal had additional argument(s) (ignoreCase: true) that could not be converted.
129127 await Assert . That ( filePath ) . IsEqualTo ( @"C:\Windows\System32\cmd.exe" ) ;
130128 }
131129}
Original file line number Diff line number Diff line change 11global using System . Diagnostics ;
2+
3+ [ assembly: ParallelLimiter < SingleThreadedLimit > ]
4+
5+ public class SingleThreadedLimit : TUnit . Core . Interfaces . IParallelLimit
6+ {
7+ public int Limit => 1 ;
8+ }
Original file line number Diff line number Diff line change 1- using System . Threading . Tasks ;
2-
3- class RecordingTracker ( ) :
1+ class RecordingTracker ( ) :
42 Tracker (
53 ( ) =>
64 {
Original file line number Diff line number Diff line change 1414 <CheckEolTargetFramework >false</CheckEolTargetFramework >
1515 <SuppressTfmSupportBuildWarnings >true</SuppressTfmSupportBuildWarnings >
1616 <ResolveAssemblyReferencesSilent >true</ResolveAssemblyReferencesSilent >
17- <NoWarn >CA1416;CS1591;xUnit1051 </NoWarn >
17+ <NoWarn >CA1416;CS1591</NoWarn >
1818 <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
1919 <EnforceCodeStyleInBuild >true</EnforceCodeStyleInBuild >
2020 <SuppressNETCoreSdkPreviewMessage >true</SuppressNETCoreSdkPreviewMessage >
You can’t perform that action at this time.
0 commit comments