Refactored the Kernel registration fluent interface to be more readable, better suppo...
[castle.git] / MonoRail / Castle.MonoRail.Views.Brail.Tests / DslFixture.cs
bloba56fdd8f793ef66b7d66bac186483f5729b63f2d
1 namespace Castle.MonoRail.Views.Brail.Tests
3 using System.Collections.Generic;
4 using System.Configuration;
5 using System.IO;
6 using Controllers;
7 using NUnit.Framework;
9 [TestFixture]
10 public class DslFixture : BaseViewOnlyTestFixture
12 [Test]
13 public void CanOutputParagraphWithClassAttribute()
15 ProcessView("dsl/attributeOutput");
16 AssertReplyEqualTo("<html><p class=\"foo\">hello world</p></html>");
19 [Test]
20 public void ParametersCanBeReferencedByView()
22 PropertyBag["SayHelloTo"] = "Harris";
23 ProcessView("dsl/expandParameters");
24 AssertReplyEqualTo("<html><p>hello, Harris</p></html>");
27 [Test]
28 public void RegisterHtmlAllowsCallToHtml()
30 ProcessView("dsl/registerHtml");
31 AssertReplyEqualTo("<html><p class=\"foo\">hello world</p></html>");
32 AssertReplyEqualTo(@"<html>hello world</html>");