public void when_parsing_nickname_argument_then_nickname_is_set(string argument, string expectedValue) { var options = VisualStudioOptions.Empty().WithNickname(); options.Parse(new[] { argument }); Assert.Equal(expectedValue, options.Nickname); }
public void when_parsing_sku_argument_then_sku_is_set(string argument, Sku?expectedValue) { var options = VisualStudioOptions.Empty().WithSku(); options.Parse(new[] { argument }); Assert.Equal(expectedValue, options.Sku); }
public void when_parsing_channel_argument_then_channel_is_set(string argument, Channel?expectedValue) { var options = VisualStudioOptions.Empty().WithChannel(); options.Parse(new[] { argument }); Assert.Equal(expectedValue, options.Channel); }
public void when_parsing_all_argument_then_all_is_set(string argument, bool expectedValue) { var options = VisualStudioOptions.Empty().WithSelectAll(); options.Parse(new[] { argument }); Assert.Equal(expectedValue, options.All); }
public void when_parsing_expression_then_exppression_is_set(string argument, string expectedValue) { var options = VisualStudioOptions.Empty().WithFilter(); options.Parse(new[] { argument }); Assert.Equal(expectedValue, options.Expression); }
public void when_parsing_experimental_then_experimental_is_set(string argument, bool expectedValue) { var options = VisualStudioOptions.Empty().WithExperimental(); options.Parse(new[] { argument }); Assert.Equal(expectedValue, options.IsExperimental); }