Skip to content

Commit 3bfcff1

Browse files
committed
.
1 parent 14a7019 commit 3bfcff1

5 files changed

Lines changed: 15 additions & 11 deletions

File tree

claude.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
1313
dotnet 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

src/DiffEngine.Tests/OsSettingsResolverTest.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
global using System.Diagnostics;
2+
3+
[assembly: ParallelLimiter<SingleThreadedLimit>]
4+
5+
public class SingleThreadedLimit : TUnit.Core.Interfaces.IParallelLimit
6+
{
7+
public int Limit => 1;
8+
}

src/DiffEngineTray.Tests/RecordingTracker.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Threading.Tasks;
2-
3-
class RecordingTracker() :
1+
class RecordingTracker() :
42
Tracker(
53
() =>
64
{

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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>

0 commit comments

Comments
 (0)