public ExternalStylesheetBundleDeserializer_Tests() { element = new XElement( "ExternalStylesheetBundle", new XAttribute("Path", "~"), new XAttribute("Hash", "010203"), new XAttribute("Url", "http://example.com/"), new XAttribute("Condition", "CONDITION"), new XElement("HtmlAttribute", new XAttribute("Name", "media"), new XAttribute("Value", "MEDIA")) ); directory = new FakeFileSystem { { "~/stylesheet/010203.css", "content" } }; var urlModifier = new VirtualDirectoryPrepender("/"); reader = new ExternalStylesheetBundleDeserializer(urlModifier); DeserializeElement(); }
public ExternalStylesheetBundleDeserializer_Tests() { element = new XElement( "ExternalStylesheetBundle", new XAttribute("Path", "~"), new XAttribute("Hash", "010203"), new XAttribute("Url", "http://example.com/"), new XAttribute("Condition", "CONDITION"), new XAttribute("FallbackRenderer", typeof(StylesheetHtmlRenderer).AssemblyQualifiedName), new XAttribute("Renderer", typeof(ExternalStylesheetBundle.ExternalStylesheetBundleRenderer).AssemblyQualifiedName), new XElement("HtmlAttribute", new XAttribute("Name", "media"), new XAttribute("Value", "MEDIA")) ); directory = new FakeFileSystem { { "~/stylesheet/010203.css", "content" } }; var container = new TinyIoCContainer(); container.Register(Mock.Of <IUrlGenerator>()); reader = new ExternalStylesheetBundleDeserializer(container); DeserializeElement(); }