()
| 68 | } |
| 69 | |
| 70 | public override string ToString() |
| 71 | { |
| 72 | StringBuilder builder = new StringBuilder("<html>"); |
| 73 | builder.Append("<head>"); |
| 74 | builder.AppendFormat("<title>{0}</title>", this.title); |
| 75 | builder.Append("</head>"); |
| 76 | builder.Append("<script type='text/javascript'>"); |
| 77 | foreach (string script in this.scripts) |
| 78 | { |
| 79 | builder.Append(script).Append("\n"); |
| 80 | } |
| 81 | |
| 82 | builder.Append("</script>"); |
| 83 | builder.Append("<style>"); |
| 84 | foreach (string style in this.styles) |
| 85 | { |
| 86 | builder.Append(style).Append("\n"); |
| 87 | } |
| 88 | |
| 89 | builder.Append("</style>"); |
| 90 | builder.Append("<body"); |
| 91 | if (!string.IsNullOrEmpty(this.onLoad)) |
| 92 | { |
| 93 | builder.AppendFormat(" onload='{0}'", this.onLoad); |
| 94 | } |
| 95 | |
| 96 | if (!string.IsNullOrEmpty(this.onBeforeUnload)) |
| 97 | { |
| 98 | builder.AppendFormat(" onbeforeunload='{0}'", this.onBeforeUnload); |
| 99 | } |
| 100 | |
| 101 | builder.Append(">"); |
| 102 | foreach (string bodyPart in this.bodyParts) |
| 103 | { |
| 104 | builder.Append(bodyPart).Append("\n"); |
| 105 | } |
| 106 | |
| 107 | builder.Append("</body>"); |
| 108 | builder.Append("</html>"); |
| 109 | return builder.ToString(); |
| 110 | } |
| 111 | } |
no outgoing calls
no test coverage detected