public void create_from_embedded_resource() { var template = FileTemplate.Embedded("view.spark"); template.RawText.ShouldContain("<viewdata model=\"%MODEL%\" />"); template.Extension.ShouldEqual(".spark"); }
public void get_content() { var substitutions = new Substitutions(); substitutions.Set("%MODEL%", "Foo.Bar"); var template = FileTemplate.Embedded("view.spark"); template.Contents(substitutions).ShouldContain("<viewdata model=\"Foo.Bar\" />"); }
public void fall_all_the_way_through_to_the_embedded_resource_if_nothing_else_exists() { var template = FileTemplate.Find(theLocation, "view.spark"); template.RawText.ShouldEqual(FileTemplate.Embedded("view.spark").RawText); }