diff --git a/csharp-example.cs b/csharp-example.cs index f97b3be..7d8e3dc 100644 --- a/csharp-example.cs +++ b/csharp-example.cs @@ -2,5 +2,14 @@ class TestClass { static void Main(string[] args) { + if (IsTestRunCommand(args)) + { + System.Console.WriteLine("Running tests"); + } + } + + static bool IsTestRunCommand(string[] args) + { + return args.Length >= 2 && args[0] == "cli" && args[1] == "test-run"; } }