public void ShouldProcessAdditonalSourcesElement_IfConfiguringSingleViewEngine()
{
string configXml =
@"
<monorail>
<controllers>
<assembly>Castle.MonoRail.Framework.Tests</assembly>
</controllers>
<viewEngine viewPathRoot=""Views"">
<additionalSources>
<assembly name=""Castle.MonoRail.Framework.Tests"" namespace=""Castle.MonoRail.Framework.Tests.Content"" />
</additionalSources>
</viewEngine>
</monorail>";
XmlDocument doc = new XmlDocument();
doc.LoadXml(configXml);
ViewEngineConfig config = new ViewEngineConfig();
config.Deserialize(doc.DocumentElement);
Assert.IsTrue(config.Sources.Length > 0, "additonal sources not loaded");
}