From ae8820849b167ade2f6f6aff0df22bf42fcb534b Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 21 Jun 2013 08:45:08 +1000 Subject: [PATCH] Fixes unit tests --- src/Umbraco.Tests/UmbracoExamine/PdfIndexerTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Tests/UmbracoExamine/PdfIndexerTests.cs b/src/Umbraco.Tests/UmbracoExamine/PdfIndexerTests.cs index 69f678a4fa..2df3eb9059 100644 --- a/src/Umbraco.Tests/UmbracoExamine/PdfIndexerTests.cs +++ b/src/Umbraco.Tests/UmbracoExamine/PdfIndexerTests.cs @@ -30,6 +30,8 @@ namespace Umbraco.Tests.UmbracoExamine var path = svc.MapPath("/App_Data/Converting_file_to_PDF.pdf"); var f = new FileInfo(path); var dir = f.Directory; + //ensure the folder is there + System.IO.Directory.CreateDirectory(dir.FullName); var pdfs = new[] { TestFiles.Converting_file_to_PDF, TestFiles.PDFStandards, TestFiles.SurviorFlipCup, TestFiles.windows_vista }; var names = new[] { "Converting_file_to_PDF.pdf", "PDFStandards.pdf", "SurviorFlipCup.pdf", "windows_vista.pdf" }; for (int index = 0; index < pdfs.Length; index++)