File tree Expand file tree Collapse file tree
Tests/Core/Sources/Ghostscript Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919namespace Cube . Pdf . Tests . Ghostscript ;
2020
2121using System ;
22- using System . IO ;
2322using System . Linq ;
24- using Cube . FileSystem ;
2523using Cube . Pdf . Ghostscript ;
2624using Cube . Tests ;
2725using 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
Original file line number Diff line number Diff 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 /* --------------------------------------------------------------------- */
You can’t perform that action at this time.
0 commit comments