public void Selected_item_is_updated() { TemplateResult .HasElement("select") .HasElement(x => x.HasAttributeValue("value", Entity.Name)) .WithAttribute("selected").ShouldHaveValue("true"); }
public void Selected_item_is_maintained() { TemplateResult .HasElement("select") .HasElement(x => x.HasAttributeValue("value", "nothing")) .WithAttribute("selected").ShouldHaveValue("true"); }
public void href_is_empty() { TemplateResult.HasElement("a").WithoutAttribute("href"); }
public void action_is_set_to_correct_Url() { TemplateResult.HasElement("form").WithAttribute("action").ShouldHaveValue("http://localhost/TestEntity/THENAME"); }
public void src_is_set_to_correct_Url() { TemplateResult.HasElement("iframe").WithAttribute("src").ShouldHaveValue("http://localhost/TestEntity/THENAME"); }
public void action_resolves_to_correct_uri_for_type() { TemplateResult.HasElement("form").WithAttribute("action").ShouldHaveValue("http://localhost/TestEntities"); }
public void action_is_empty() { TemplateResult.HasElement("form").WithoutAttribute("action"); }
public void src_is_empty() { TemplateResult.HasElement("img").WithoutAttribute("src"); }
public void value_is_set_correcty_from_testentity() { TemplateResult.HasElement("input").WithAttribute("value").ShouldHaveValue(Entity.Name); }
public void Name_is_set_to_the_property_path() { TemplateResult.HasElement("textarea").WithAttribute("name").ShouldHaveValue("TestEntity.Name"); }
public void innter_text_is_empty() { TemplateResult.HasElement("textarea").Value.ShouldBeEmpty(); }
public void value_is_empty() { TemplateResult.HasElement("input").WithoutAttribute("value"); }
public void Checked_attribute_should_not_be_set() { TemplateResult.HasElement("input").WithoutAttribute("checked"); }
public void inner_text_is_set_to_TestEntity_name() { TemplateResult.HasElement("textarea").Value.ShouldEqual(Entity.Name); }
public void Inner_text_is_maintained() { TemplateResult.HasElement("a").Value.ShouldEqual("Inner text"); }
public void Non_relevant_attributes_are_ignored() { TemplateResult.HasElement("a").WithAttribute("anotherattribute").ShouldHaveValue("leave this alone"); }
public void src_resolves_to_correct_uri_for_type() { TemplateResult.HasElement("iframe").WithAttribute("src").ShouldHaveValue("http://localhost/TestEntities"); }