Skip to content

Commit df398be

Browse files
committed
Fix test cases
1 parent b083c4d commit df398be

2 files changed

Lines changed: 1 addition & 33 deletions

File tree

Tests/Core/Sources/Ghostscript/ConverterTestEx.cs

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
namespace Cube.Pdf.Tests.Ghostscript;
2020

2121
using System;
22-
using System.IO;
2322
using System.Linq;
24-
using Cube.FileSystem;
2523
using Cube.Pdf.Ghostscript;
2624
using Cube.Tests;
2725
using NUnit.Framework;
@@ -95,37 +93,6 @@ public void SupportedFormats()
9593

9694
#region Tests for irregular cases
9795

98-
/* --------------------------------------------------------------------- */
99-
///
100-
/// Test_Cjk_Throws
101-
///
102-
/// <summary>
103-
/// Confirm the behavior when CJK characters are set as output
104-
/// path.
105-
/// </summary>
106-
///
107-
/// <remarks>
108-
/// The Ghostscript API currently fails to invoke the conversion
109-
/// process if a path containing CJK characters is specified.
110-
/// </remarks>
111-
///
112-
/* --------------------------------------------------------------------- */
113-
[Test]
114-
public void Test_Cjk_Throws() => Assert.That(() =>
115-
{
116-
var src = GetSource("Sample.ps");
117-
var dest = Get("Pdf", $"CJKファイル.pdf");
118-
119-
new PdfConverter
120-
{
121-
Quiet = false,
122-
Log = Get($"{nameof(Test_Cjk_Throws)}.log"),
123-
Temp = Get("Tmp"),
124-
}.Invoke(src, dest);
125-
126-
if (!Io.Exists(dest)) throw new FileNotFoundException();
127-
}, Throws.TypeOf<FileNotFoundException>().Or.TypeOf<GsApiException>());
128-
12996
/* ----------------------------------------------------------------- */
13097
///
13198
/// Test_PdfEncoding_Throws

Tests/Core/Sources/Ghostscript/TestCases/PdfTestCase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ private IEnumerable<TestCaseData> GetBasicTestCases()
5353
yield return Make("Web", "SampleWeb.ps", new() { Linearization = true });
5454
yield return Make("Version_12", new() { Version = new PdfVersion(1, 2) });
5555
yield return Make("Metadata", "SampleMetadata.ps", new());
56+
yield return Make("CJKファイル", new());
5657
}
5758

5859
/* --------------------------------------------------------------------- */

0 commit comments

Comments
 (0)