@@ -1847,14 +1847,17 @@ public void ReplaceProjectContentsFromFiles_Cancel()
1847
1847
[ Test ]
1848
1848
public void ExportModule_ExpectExecution ( )
1849
1849
{
1850
- const string path = @"C:\Users\Rubberduck\Desktop\StdModule1.bas" ;
1850
+ const string folder = @"C:\Users\Rubberduck\Desktop" ;
1851
+ const string filename = "StdModule1.bas" ;
1852
+ var path = Path . Combine ( folder , filename ) ;
1851
1853
1852
1854
using ( var explorer = new MockedCodeExplorer ( ProjectType . HostProject )
1853
1855
. ConfigureSaveDialog ( path , DialogResult . OK )
1854
1856
. SelectFirstModule ( ) )
1855
1857
{
1858
+ explorer . VbComponent . Setup ( c => c . ExportAsSourceFile ( folder , It . IsAny < bool > ( ) , It . IsAny < bool > ( ) ) ) ;
1856
1859
explorer . ExecuteExportCommand ( ) ;
1857
- explorer . VbComponent . Verify ( c => c . Export ( path ) , Times . Once ) ;
1860
+ explorer . VbComponent . Verify ( c => c . ExportAsSourceFile ( folder , false , true ) , Times . Once ) ;
1858
1861
}
1859
1862
}
1860
1863
@@ -1868,8 +1871,11 @@ public void ExportModule_CancelPressed_ExpectNoExecution()
1868
1871
. ConfigureSaveDialog ( path , DialogResult . Cancel )
1869
1872
. SelectFirstModule ( ) )
1870
1873
{
1874
+ explorer . VbComponent . Setup ( c => c . Export ( path ) ) ;
1875
+ explorer . VbComponent . Setup ( c => c . ExportAsSourceFile ( path , It . IsAny < bool > ( ) , It . IsAny < bool > ( ) ) ) ;
1871
1876
explorer . ExecuteExportCommand ( ) ;
1872
1877
explorer . VbComponent . Verify ( c => c . Export ( path ) , Times . Never ) ;
1878
+ explorer . VbComponent . Verify ( c => c . ExportAsSourceFile ( path , It . IsAny < bool > ( ) , It . IsAny < bool > ( ) ) , Times . Never ) ;
1873
1879
}
1874
1880
}
1875
1881
0 commit comments