public void CanGenerateCommandLine()
        {
            var options = new TestRunnerOptions
            {
                DetectMemoryLeaks = false
            };

            var commandLineGenerator = new CommandLineGenerator();
            var commandLine = commandLineGenerator.Generate("run_tests.exe", "my_test", options);

            Assert.AreEqual("run_tests.exe -t my_test --detect_memory_leaks=0", commandLine);
        }
        public string Generate(string testExecutable, string testName, TestRunnerOptions options)
        {
            var builder = new StringBuilder();
            builder.Append(testExecutable);
            builder.Append(" -t ");
            builder.Append(testName);
            foreach ( var optionPair in options.Options )
            {
                builder.Append(" ");
                builder.Append(optionPair.Key + "=" + optionPair.Value);
            }

            return builder.ToString();
        }