File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,8 +35,13 @@ public void Test_ConvertDotXtoDocX_ReleasesDocumentStream() {
3535 [ InlineData ( false ) ]
3636 [ InlineData ( true ) ]
3737 public void Test_SaveDotXAsDocX_ChangesPackageType ( bool useSaveAs ) {
38- string templatePath = Path . Combine ( _directoryDocuments , "ExampleTemplate.dotx" ) ;
39- string outFilePath = Path . Combine ( _directoryWithFiles , useSaveAs ? "ExampleTemplate_SaveAs.docx" : "ExampleTemplate_Save.docx" ) ;
38+ const string templateFileName = "ExampleTemplate.dotx" ;
39+ string outputFileName = useSaveAs ? "ExampleTemplate_SaveAs.docx" : "ExampleTemplate_Save.docx" ;
40+ Assert . False ( Path . IsPathRooted ( templateFileName ) ) ;
41+ Assert . False ( Path . IsPathRooted ( outputFileName ) ) ;
42+
43+ string templatePath = Path . Combine ( _directoryDocuments , templateFileName ) ;
44+ string outFilePath = Path . Combine ( _directoryWithFiles , outputFileName ) ;
4045
4146 using ( WordDocument document = WordDocument . Load ( templatePath ) ) {
4247 if ( useSaveAs ) {
You can’t perform that action at this time.
0 commit comments