public void Should_Add_OutputType_To_Arguments_If_Set(TfxOutputType outputType, string expected) { // Given var fixture = new TfxExtensionCreateRunnerFixture(); fixture.Settings.Output = outputType; // When var result = fixture.Run(); // Then Assert.Equal(expected, result.Args); }
private static string GetOutputName(TfxOutputType output) { switch (output) { case TfxOutputType.Friendly: return("friendly"); case TfxOutputType.Json: return("json"); case TfxOutputType.Clipboard: return("clipboard"); default: throw new NotSupportedException("The provided output is not valid."); } }