public void TestAppend3() { const CaseTestDataObject t = null; string url = "https://test.se/".AppendObject(t); string expectedQuery = "https://test.se/"; Assert.Equal(expectedQuery, url); }
public void TestValueLowerCase() { var query = new CaseTestDataObject().ToQuery(new ToQueryOptions { ValueCase = ValueCase.LowerCase }); string expectedQuery = "Name=example"; Assert.Equal(expectedQuery, query); }
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); }