Skip to content

Commit 4384b90

Browse files
committed
Added temp path
1 parent d85969f commit 4384b90

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: WKHtmlToXSharp/NeuroSpeech.WKHtmlToXSharp/WKHtmlToX.cs

-2
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ public static async Task<byte[]> HtmlToPdfAsync(string html, ConversionTask opti
157157

158158
}
159159

160-
private static long id = 1;
161-
162160
/// <summary>
163161
/// Converts given URL or HTML string to PDF.
164162
/// </summary>

Diff for: WKHtmlToXSharp/WKHtmlToXSharpTests/UnitTest1.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Microsoft.VisualStudio.TestTools.UnitTesting;
2+
using System.IO;
23
using System.Threading.Tasks;
34

45
namespace WKHtmlToXSharpTests
@@ -9,7 +10,7 @@ public class UnitTest1
910
[TestMethod]
1011
public async Task TestMethod1()
1112
{
12-
13+
NeuroSpeech.WKHtmlToXSharp.WKHtmlToX.TempFolder = Path.GetTempPath();
1314
var b = await NeuroSpeech.WKHtmlToXSharp.WKHtmlToX.HtmlToPdfAsync("<html><body><div>t</div></body></html>", new NeuroSpeech.WKHtmlToXSharp.ConversionTask());
1415
Assert.IsTrue(b.Length > 0);
1516
}

0 commit comments

Comments
 (0)