public void AddShowListMemberships_adds_value(bool testValue) { var builder = new HttpQueryStringBuilder(); HttpQueryStringBuilderExtensions.AddShowListMemberships(builder, testValue); Assume.That(builder.HasKey("showListMemberships")); var query = builder.BuildQuery(); Assert.That(query.Query, Contains.Substring($"showListMemberships={testValue.ToString().ToLower()}")); }
public void AddShowListMemberships_builder_is_required(bool testValue) { Assert.Throws <ArgumentNullException>(() => HttpQueryStringBuilderExtensions.AddShowListMemberships(null, testValue)); }