private byte[] RewriteXapWithSpecialFiles(byte[] xapHost, IEnumerable <ITestFile> filesToCopyIntoHostXap) { if (filesToCopyIntoHostXap.Any()) { var rewriter = new XapRewriter(_logger); xapHost = rewriter.RewriteZipHostWithFiles(xapHost, filesToCopyIntoHostXap) .ToByteArray(); } return(xapHost); }
private byte[] RewriteXapWithSpecialFiles(byte[] xapHost, Func <IEnumerable <ITestFile> > filesToCopyIntoHostXapFunc, string runtimeVersion) { var files = filesToCopyIntoHostXapFunc(); if (files.Any()) { var rewriter = new XapRewriter(_logger); xapHost = rewriter .RewriteZipHostWithFiles(xapHost, files, runtimeVersion) .ToByteArray(); } return(xapHost); }