Add Newtonsoft.Json to the references of TestSiteBrail
[castle.git] / MonoRail / Castle.MonoRail.Views.Brail.Tests / DslFixture.cs
blobeadfa7006bb5691475c57ad7ecaa059fc0b6bad2
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(ViewLocations.BrailTestsView)
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>");