예제 #1
0
        public void TestAppend3()
        {
            const CaseTestDataObject t = null;
            string url           = "https://test.se/".AppendObject(t);
            string expectedQuery = "https://test.se/";

            Assert.Equal(expectedQuery, url);
        }
예제 #2
0
        public void TestValueLowerCase()
        {
            var query = new CaseTestDataObject().ToQuery(new ToQueryOptions {
                ValueCase = ValueCase.LowerCase
            });
            string expectedQuery = "Name=example";

            Assert.Equal(expectedQuery, query);
        }
예제 #3
0
        public async Task TestWarmUp()
        {
            await ObjectToQueryExtentions.WarmUpAsync(typeof(CaseTestDataObject));

            var query = new CaseTestDataObject().ToQuery(new ToQueryOptions {
                ValueCase = ValueCase.LowerCase
            });
            string expectedQuery = "Name=example";

            Assert.Equal(expectedQuery, query);
        }