Skip to content

Commit 9f4b2d1

Browse files
author
vp
committed
Refactor architecture tests: extract ArchitectureFixture to a new file, update test attributes, and include Dumpify globally
- Moved ArchitectureFixture class to a new file for better organization. - Updated ArchitectureTests to use [ArchitectureTest] attribute and added [Category("ArchitectureTest")]. - Added Dumpify as a global using in GlobalUsings.cs.
1 parent 8b169cf commit 9f4b2d1

7 files changed

Lines changed: 312 additions & 782 deletions

File tree

.bdk/cli/lib/BdkUI.csx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,13 @@ public class BdkUI
148148

149149
private BdkTask ShowTaskMenu(string category)
150150
{
151-
var tasks = _tasksByCategory[category];
152-
var choices = tasks.Select(t => $"{t.Label} - {t.Description}").ToList();
151+
var tasks = _tasksByCategory[category]
152+
.OrderBy(t => t.Label, StringComparer.OrdinalIgnoreCase)
153+
.ToList();
154+
var labelWidth = tasks.Count == 0 ? 0 : tasks.Max(t => t.Label.Length);
155+
var choices = tasks
156+
.Select(t => $"{t.Label.PadRight(labelWidth)} - {t.Description}")
157+
.ToList();
153158
choices.Add("← Back");
154159
choices.Add("✕ Exit");
155160

.bdk/cli/lib/TaskRegistry.csx

Lines changed: 190 additions & 60 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)