public void ExecuterExecuteReturnArgumentProcessorResultAbort() { HelpArgumentExecutor executor = new HelpArgumentExecutor(); var result = executor.Execute(); Assert.AreEqual(ArgumentProcessorResult.Abort, result); }
public void ExecuterExecuteWritesAppropriateDataToConsole() { HelpArgumentExecutor executor = new HelpArgumentExecutor(); var output = new DummyConsoleOutput(); executor.Output = output; var result = executor.Execute(); Assert.IsTrue(output.Lines.Contains("Usage: vstest.console.exe [Arguments] [Options] [[--] <RunSettings arguments>...]]")); Assert.IsTrue(output.Lines.Contains("Arguments:")); Assert.IsTrue(output.Lines.Contains("Options:")); Assert.IsTrue(output.Lines.Contains("Description: Runs tests from the specified files.")); Assert.IsTrue(output.Lines.Contains(" To run tests:" + Environment.NewLine + " >vstest.console.exe tests.dll " + Environment.NewLine + " To run tests with additional settings such as data collectors:" + Environment.NewLine + " >vstest.console.exe tests.dll /Settings:Local.RunSettings")); }