namespace SSPCTester.Logic.Models; /// 用户在项目信息页选择的要执行的测试模块。 public sealed class TestSelection { public bool Basic { get; set; } = true; public bool Curve { get; set; } = true; public bool Power { get; set; } = true; public bool Protect { get; set; } = true; public IEnumerable EnumerateEnabled() { if (Basic) yield return "基础测试"; if (Curve) yield return "开启与关断曲线"; if (Power) yield return "功率损耗"; if (Protect) yield return "保护功能"; } } /// 报告页勾选的章节。 public sealed class ReportSelection { public bool Cover { get; set; } = true; public bool Basic { get; set; } = true; public bool Curve { get; set; } = true; public bool Power { get; set; } = true; public bool Protect { get; set; } = true; public string FileName { get; set; } = "report_{yyyyMMdd_HHmmss}.pdf"; } /// 四个测试页“测试说明”手动记录内容。 public sealed class TestFunctionNotes { public string Basic { get; set; } = ""; public string Curve { get; set; } = ""; public string Power { get; set; } = ""; public string Protect { get; set; } = ""; }