More working tests.
[castle.git] / MonoRail / Castle.MonoRail.Views.Brail.Tests / DslFixture.cs
blobcb887315ee9fc54ba1366375240aca9027936afe
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 public DslFixture()
13 : base("../../")
18 [Test]
19 public void CanOutputParagraphWithClassAttribute()
21 ProcessView("dsl/attributeOutput");
22 AssertReplyEqualTo("<html><p class=\"foo\">hello world</p></html>");
25 [Test]
26 public void ParametersCanBeReferencedByView()
28 PropertyBag["SayHelloTo"] = "Harris";
29 ProcessView("dsl/expandParameters");
30 AssertReplyEqualTo("<html><p>hello, Harris</p></html>");
33 [Test]
34 public void RegisterHtmlAllowsCallToHtml()
36 ProcessView("dsl/registerHtml");
37 AssertReplyEqualTo(@"<html>hello world</html>");