public void Should_return_a_GridData_With_the_newly_added_filter() { var kvpList = new List<KeyValuePair<string, string>> { new KeyValuePair<string, string>("Name1", "Value2"), new KeyValuePair<string, string>("Name1", "Value2") }; var dropDownListData = new DropDownListData(kvpList); dropDownListData.SubmitOnChange(); var grid = _gridData.WithFilter(dropDownListData); Assert.AreSame(_gridData, grid); }
public void Should_return_HTML_code_representing_a_DropDownList_with_its_value_embedded_in_it() { _dropDownListData = new DropDownListData(_items) .WithValidationFrom(_propertyMetaData) .WithId(_id); _dropDownListData.SubmitOnChange(); _dropDownListData.ToString().ShouldBeEqualTo(_htmlText); }