@@ -18,7 +18,7 @@ public interface IConfigurator
1818 void RemoveTestEnvironment ( bool RemoveTestModules = false , bool ExportModulesBeforeRemoving = true , [ MarshalAs ( UnmanagedType . IDispatch ) ] object VBProject = null ) ;
1919 void InsertAccUnitLoaderFactoryModule ( bool UseAccUnitTypeLib , bool RemoveIfExists = false , [ MarshalAs ( UnmanagedType . IDispatch ) ] object VBProject = null , object HostApplication = null ) ;
2020 void RemoveAccUnitLoaderFactoryModule ( [ MarshalAs ( UnmanagedType . IDispatch ) ] object VBProject = null ) ;
21- void ExportTestClasses ( string ExportPath = null , [ MarshalAs ( UnmanagedType . IDispatch ) ] object VBProject = null ) ;
21+ void ExportTestClasses ( string ExportPath = null , [ MarshalAs ( UnmanagedType . IDispatch ) ] object VBProject = null , bool ExportTestComponents = true ) ;
2222 void ImportTestClasses ( string FileNameFilter = null , string ImportPath = null , [ MarshalAs ( UnmanagedType . IDispatch ) ] object VBProject = null ) ;
2323
2424 IUserSettings UserSettings { get ; }
@@ -127,15 +127,15 @@ private void RemoveAccUnitTlbReference()
127127 }
128128 }
129129
130- public void ExportTestClasses ( string exportPath = null , object vbProject = null )
130+ public void ExportTestClasses ( string exportPath = null , object vbProject = null , bool exportTestComponents = true )
131131 {
132132 if ( vbProject != null )
133133 _vbProject = ( VBProject ) vbProject ;
134134
135135 OfficeApplicationHelper officeApplicationHelper = new VBProjectOnlyApplicatonHelper ( _vbProject ) ;
136136 using ( var testClassManager = new TestClassManager ( officeApplicationHelper ) )
137137 {
138- testClassManager . ExportTestClasses ( exportPath ) ;
138+ testClassManager . ExportTestClasses ( exportPath , exportTestComponents ) ;
139139 }
140140 }
141141
0 commit comments