Add Open in Notepad++ and static Windows shell verbs without embedding IContextMenu on right-click.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 14:24:00 +02:00
parent e2916aef9c
commit 66ea25993f
16 changed files with 1290 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
using Explorer.Application;
namespace Explorer.Application.Tests;
public class NotepadPlusPlusLocatorTests
{
[Fact]
public void Finds_notepad_plus_plus_on_PATH()
{
var found = NotepadPlusPlusLocator.Find(
fileExists: p => p.Equals(@"D:\apps\notepad++.exe", StringComparison.OrdinalIgnoreCase),
pathVariable: @"C:\Windows;D:\apps");
Assert.Equal(@"D:\apps\notepad++.exe", found);
}
[Fact]
public void Returns_null_when_missing()
{
Assert.Null(NotepadPlusPlusLocator.Find(fileExists: _ => false, pathVariable: @"C:\none"));
Assert.Contains("Notepad++", NotepadPlusPlusLocator.MissingHint, StringComparison.OrdinalIgnoreCase);
}
}