C# Class RubberduckTests.Mocks.MockFactory

显示文件 Open project: retailcoder/Rubberduck Class Usage Examples

Private Methods

Method Description
CreateCodeModuleMock ( string code ) : Mock

Creates a new Mock{CodeModule} setup to appropriately mimic getting and modifying code contained in the CodeModule.

CreateCodeModuleMock ( string code, Mock codePane, Mock vbe ) : Mock

Creates a new Mock{CodeModule} setup to appropriately mimic getting and modifying code contained in the CodeModule.

CreateCodePaneMock ( Mock vbe, string name ) : Mock

Creates a "selectable" Mock{CodePane}.

CreateComponentMock ( string name, CodeModule codeModule, vbext_ComponentType componentType, Mock vbe ) : Mock

Creates a new Mock{VBComponent}.

CreateComponentsMock ( ICollection componentList, VBProject project ) : Mock

Creates a new Mock{VBComponents} that can be iterated over as an IEnumerable.

CreateComponentsMock ( IEnumerable componentList ) : Mock

Creates a new Mock{VBComponents} that can be iterated over as an IEnumerable.

CreateMockReference ( string name, string filePath ) : Mock

Creates a new Mock{Reference}.

CreateProjectMock ( string name, Mock references ) : Mock

Creates a new Mock{Project} that is set up with a References collection.

CreateProjectMock ( string name, vbext_ProjectProtection protectionLevel ) : Mock

Creates a new Mock{VBProject}.

CreateProjectsMock ( ICollection projectList ) : Mock

Creates a new Mock{VBProjects} that can be iterated over as an IEnumerable.

CreateReferencesMock ( List referenceList ) : Mock

Creates a new Mock{References} collection that can be iterated over as an IEnumerable.

CreateVbeMock ( ) : Mock
CreateVbeMock ( RubberduckTests.Mocks.MockWindowsCollection windows ) : Mock

Creates a new Mock{VBE} that returns the Windows collection argument out of the Windows property.

CreateWindowMock ( ) : Mock

Creates a mock Window that is particularly useful for passing into MockWindowsCollection's ctor.

CreateWindowMock ( string caption ) : Mock

Creates a mock Window with it's Window.Caption propery set up.