public void Should_return_HTML_code_representing_a_radio_field_with_its_value_embedded_in_it() { var value = false; var checkBoxData = new RadioButtonData(value).WithId(Reflection.GetPropertyName(() => value).ToCamelCase()); var actual = checkBoxData.ToString(); actual.ShouldBeEqualTo(HtmlText, actual); }
private static void SetLabel(RadioButtonData checkBoxData) { var label = new LabelData { Text = "Label" }; checkBoxData.WithLabel(label); checkBoxData.WithLabelAlignedLeft(label); }
public void BeforeEachTest() { IsChecked = true; RadioButtonData = new RadioButtonData(true); }
private void set_the_value_to_true_in_the_generated_html(RadioButtonData obj) { RadioButtonData.ToString().ParseHtmlTag()["value"].ShouldBeEqualTo("true"); }
private void put_the_value_in_the_generated_html(RadioButtonData checkBoxData) { RadioButtonData.ToString().ParseHtmlTag()["value"].ShouldBeEqualTo("false"); }
private static void value_set_to_false(RadioButtonData checkBoxData) { checkBoxData.WithValue("false"); }
private static void value_not_set(RadioButtonData checkBoxData) { checkBoxData.WithValue(null); }