public void the_inherits_attribute_is_rewritten(string typeName, Type expectedType)
        {
            var filter = new OpenRastaPageParserFilter();
            filter.PreprocessDirective("import", new Hashtable {{"namespace", typeof (HomeResource).Namespace}});
            filter.PreprocessDirective("import", new Hashtable {{"namespace", typeof (IList<>).Namespace}});
            string rewritten = filter.ParseInheritsAttribute(typeName);

            rewritten.ShouldBe(expectedType.AssemblyQualifiedName);
        }
 public void the_title_is_renamed_PageTitle()
 {
     var filter = new OpenRastaPageParserFilter();
     var attributes = new Hashtable {{"Title", "page's title"},{"Inherits","MasterView"}};
     filter.PreprocessDirective("Page",attributes);
     attributes.ContainsKey("Title")
         .ShouldBeFalse();
     attributes["PageTitle"].ShouldBe("page's title");
 }