Files
ThreadPilot/TestRunner.cs
T
Prime Build 9c1ed06c25 Add process window info, active app filtering, and tests
Enhances ProcessModel and ProcessService to track process window handle, title, and visible window status. Adds filtering for active applications with visible windows, and exposes related methods in IProcessService. Updates ProcessViewModel and ProcessPowerPlanAssociationViewModel to support real-time process info, executable browsing, and improved UI feedback. Introduces comprehensive tests for process selection, executable browsing, and active application filtering.
2025-07-29 14:49:19 +02:00

41 lines
1.2 KiB
C#

using System;
using System.Threading.Tasks;
using ThreadPilot.Tests;
namespace ThreadPilot
{
/// <summary>
/// Simple test runner for CPU topology functionality
/// </summary>
public static class TestRunner
{
/// <summary>
/// Main test entry point
/// </summary>
public static async Task RunTests()
{
Console.WriteLine("ThreadPilot CPU Topology Test Runner");
Console.WriteLine("====================================");
try
{
await CpuTopologyServiceTests.TestCpuTopologyDetection();
Console.WriteLine();
// Run Process Selection Test
var processSelectionTest = new ProcessSelectionTest();
await processSelectionTest.RunAllTests();
}
catch (Exception ex)
{
Console.WriteLine($"Test failed with exception: {ex.Message}");
Console.WriteLine($"Stack trace: {ex.StackTrace}");
}
Console.WriteLine("\nPress any key to exit...");
Console.ReadKey();
}
}
}