Phase 14 complete — v0.4 Robustness milestone closed:
- HardwareTestHelper.GetIpOrSkip: Assert.Ignore when HEIDENHAIN/SIEMENS/MITSUBISHI_IP not set (ISS-007)
- Hardware_ConnectAsync_RealMachine [Category("Hardware")] added to all 3 integration test files
- LicenseFileTests: 4 tests covering empty, whitespace, valid base64, nonexistent path
- Validate_EmptyFingerprint_ReturnsFalse: confirms validator safe against empty input (ISS-008 scaffold)
- NcProgramManager.Tests.csproj: <Compile> entries for 2 new files
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
448 B
C#
16 lines
448 B
C#
using System;
|
|
using NUnit.Framework;
|
|
|
|
namespace NcProgramManager.Tests.Integration
|
|
{
|
|
internal static class HardwareTestHelper
|
|
{
|
|
internal static string GetIpOrSkip(string envVarName)
|
|
{
|
|
string ip = Environment.GetEnvironmentVariable(envVarName);
|
|
if (string.IsNullOrEmpty(ip))
|
|
Assert.Ignore("Hardware test skipped: " + envVarName + " not set.");
|
|
return ip;
|
|
}
|
|
}
|
|
}
|