C# 클래스 RubberduckTests.Mocks.MockVbeBuilder

Builds a mock VBE.
파일 보기 프로젝트 열기: retailcoder/Rubberduck 1 사용 예제들

공개 메소드들

메소드 설명
AddProject ( Mock project ) : MockVbeBuilder

Adds a project to the mock VBE. Use a MockProjectBuilder to build the project.

Build ( ) : Mock

Gets the mock VBE instance.

BuildFromSingleModule ( string content, vbext_ComponentType type, VBComponent &component ) : Mock
BuildFromSingleStandardModule ( string content, VBComponent &component ) : Mock

Gets a mock VBE instance, containing a single "TestProject1" VBProject and a single "TestModule1" VBComponent, with the specified content.

MockVbeBuilder ( ) : System.Collections
ProjectBuilder ( string name, vbext_ProjectProtection protection ) : MockProjectBuilder

Creates a MockProjectBuilder to build a new project.

비공개 메소드들

메소드 설명
CreateCodePanesMock ( ) : Mock
CreateProjectsMock ( ) : Mock
CreateVbeMock ( ) : Mock

메소드 상세

AddProject() 공개 메소드

Adds a project to the mock VBE. Use a MockProjectBuilder to build the project.
public AddProject ( Mock project ) : MockVbeBuilder
project Mock A mock .
리턴 MockVbeBuilder

Build() 공개 메소드

Gets the mock VBE instance.
public Build ( ) : Mock
리턴 Mock

BuildFromSingleModule() 공개 메소드

public BuildFromSingleModule ( string content, vbext_ComponentType type, VBComponent &component ) : Mock
content string
type vbext_ComponentType
component VBComponent
리턴 Mock

BuildFromSingleStandardModule() 공개 메소드

Gets a mock VBE instance, containing a single "TestProject1" VBProject and a single "TestModule1" VBComponent, with the specified content.
public BuildFromSingleStandardModule ( string content, VBComponent &component ) : Mock
content string The VBA code associated to the component.
component VBComponent The created
리턴 Mock

MockVbeBuilder() 공개 메소드

public MockVbeBuilder ( ) : System.Collections
리턴 System.Collections

ProjectBuilder() 공개 메소드

Creates a MockProjectBuilder to build a new project.
public ProjectBuilder ( string name, vbext_ProjectProtection protection ) : MockProjectBuilder
name string The name of the project to build.
protection vbext_ProjectProtection A value that indicates whether the project is protected.
리턴 MockProjectBuilder