public void When_rendering_Javascript_Then_has_proper_attributes() { var control = new Javascript("http://example.org/site.js") { }; string actual = control.ToString(); var element = this.GetHtmlNode(actual); Assert.That(element.Name, Is.EqualTo("script")); Assert.That(element.InnerText, Is.Empty); Assert.That(element.Attributes["type"].Value, Is.EqualTo("text/javascript")); Assert.That(element.Attributes["src"].Value, Is.EqualTo("http://example.org/site.js")); }