public void When_parameters_empty_GetParametersFromJson_returns_empty_object() { var options = new AnalyticsOptions(); var json = options.GetParametersAsJson(); Assert.Equal("{}", json); }
public void Can_fetch_JSON_from_PositionalParameters() { var options = new AnalyticsOptions(); options.Parameter("thevalue"); var json = options.GetParametersAsJson(); Assert.Equal("[\"thevalue\"]", json); }
public void Can_fetch_JSON_from_NamedParameters() { var options = new AnalyticsOptions(); options.Parameter("theykey", "thevalue"); var json = options.GetParametersAsJson(); Assert.Equal("{\"theykey\":\"thevalue\"}", json); }