Пример #1
0
        public void AddPropertyMode_adds_value(PropertyMode mode, string value)
        {
            var builder = new HttpQueryStringBuilder();

            HttpQueryStringBuilderExtensions.AddPropertyMode(builder, mode);

            Assume.That(builder.HasKey("propertyMode"));

            var query = builder.BuildQuery();

            Assert.That(query.Query, Contains.Substring($"propertyMode={value}"));
        }
Пример #2
0
 public void AddPropertyMode_builder_is_required(PropertyMode testValue)
 {
     Assert.Throws <ArgumentNullException>(() => HttpQueryStringBuilderExtensions.AddPropertyMode(null, testValue));
 }