1 namespace Castle
.MonoRail
.Views
.Brail
.Tests
3 using System
.Collections
.Generic
;
4 using System
.Configuration
;
10 public class DslFixture
: BaseViewOnlyTestFixture
13 public void CanOutputParagraphWithClassAttribute()
15 ProcessView("dsl/attributeOutput");
16 AssertReplyEqualTo("<html><p class=\"foo\">hello world</p></html>");
20 public void ParametersCanBeReferencedByView()
22 PropertyBag
["SayHelloTo"] = "Harris";
23 ProcessView("dsl/expandParameters");
24 AssertReplyEqualTo("<html><p>hello, Harris</p></html>");
28 public void RegisterHtmlAllowsCallToHtml()
30 ProcessView("dsl/registerHtml");
31 AssertReplyEqualTo("<html><p class=\"foo\">hello world</p></html>");
32 AssertReplyEqualTo(@"<html>hello world</html>");