public void ConvertReturnsOriginalIfNameNotFound() { var parameter = new SelectParameter(); parameter.DataValues = new NameValuePair[] { new NameValuePair("name1", "value1"), new NameValuePair("name2", "value2") }; var value = parameter.Convert("notFound"); Assert.AreEqual("notFound", value); }
public void ConvertReturnsValueForName() { var parameter = new SelectParameter(); parameter.DataValues = new NameValuePair[] { new NameValuePair("name1", "value1"), new NameValuePair("name2", "value2") }; var value = parameter.Convert("name1"); Assert.AreEqual("value1", value); }