示例#1
0
        public void TestInterface()
        {
            var obj    = new DictionaryObjectTestClass3();
            var result = obj.ToQueryString(_serializationOptionsUrlDisableEncode1);

            result.Should().NotBeNullOrEmpty("Query String creation failed");
            result.Should().Contain("someParam1=ClassInterfaceValue1");
            result.Should().Contain("someParam2=3");
        }
示例#2
0
        public void TestMultipleAttributePropertyName()
        {
            var obj    = new DictionaryObjectTestClass3();
            var result = obj.ToQueryString();

            result.Should().NotBeNullOrEmpty("Query String creation failed");
            result.Should().Contain("someParam1=ClassInterfaceValue1");
            result.Should().NotContain("someParam1Json=ClassInterfaceValue1");
            result.Should().Contain("Param2=3");
            result.Should().Contain("someParam3=Class3Param3%20Value");
            result.Should().NotContain("someParam3Json=Class3Param3%20Value");
        }