/// <summary>Runs StorageSample.exe with the provided arguments</summary> /// <returns>The console output of this program</returns> private RunResult Run(params string[] arguments) { Console.Write("QuickStart.exe "); Console.WriteLine(string.Join(" ", arguments)); var standardOut = Console.Out; using (var output = new StringWriter()) { Console.SetOut(output); try { return(new RunResult() { ExitCode = QuickStart.Main(arguments), Stdout = output.ToString() }); } finally { Console.SetOut(standardOut); } } }
public void TestMain() { // Main() will throw an exception if something fails. QuickStart.Main(new string[] { }); Assert.True(true); }
public static object ListCompanies() { QuickStart.Main(null); return(0); }