public void Profile_can_be_set(QueryProfile profile, string expected) { var request = new QueryRequest("SELECT * FROM default;"); request.Profile(profile); var fields = request.GetFormValues(); if (string.IsNullOrWhiteSpace(expected)) { Assert.IsFalse(fields.ContainsKey("profile")); } else { Assert.AreEqual(expected, fields["profile"]); } }