A simple C# console application that processes command-line instructions.
dotnet restoredotnet buildPass commands as arguments inside quotes:
ddotnet run --project App -- "30, 10, 20 | 60"✅ Each string represents a command and its arguments.
Unit tests are located in the App.Tests project.
dotnet testApp.sln
├── App/ # Console app source code
│ └── Program.cs
│
├── App.Tests/ # xUnit test project
│ └── UnitTest1.cs
│
└── README.md # This file
30, 10, 20 | 60
- Commands are parsed in
Program.cs → Handle(List<int> arr, int i). - Extend the
Handlemethod to implement actual business logic. - State can be maintained via static dictionaries or service classes.