public void Does_RenderAngularTemplates_Work_With_Trailing_Slashes_On_Server_Root() { var baseDir = new DirectoryInfo(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)).Parent.Parent.FullName; string html = AngularTemplateHelper.RenderAngularTemplates(baseDir + @"\", Path.Combine(baseDir, "app")); // Assert.True(html.Contains("<script type=\"text/ng-template\" id=\"/app/subfolder1/test2.html\">")); // Assert.True(html.Contains("<script type=\"text/ng-template\" id=\"/app/test.html\">")); }
public void Does_RenderAngularTemplates_Include_The_Body_Of_Html_Files() { var baseDir = new DirectoryInfo(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)).Parent.Parent.FullName; string html = AngularTemplateHelper.RenderAngularTemplates(baseDir, Path.Combine(baseDir, "app")); Assert.True(html.Contains("<script type=\"text/ng-template\" id=\"/app/subfolder1/test2.html\">")); Assert.True(html.Contains("<script type=\"text/ng-template\" id=\"/app/test.html\">")); }