public void When_rendering_Javascript_with_content_Then_has_proper_attributes() { var control = Javascript.WithContent("alert('lol');"); string actual = control.ToString(); var element = this.GetHtmlNode(actual); Assert.That(element.Name, Is.EqualTo("script")); Assert.That(element.InnerText.Trim(), Is.EqualTo("alert('lol');")); Assert.That(element.Attributes["type"].Value, Is.EqualTo("text/javascript")); Assert.That(element.Attributes["src"], Is.Null); }