C# 클래스 Microsoft.VsSDK.IntegrationTestLibrary.TestUtils

파일 보기 프로젝트 열기: ChaosinaCan/BraceCompleter 1 사용 예제들

공개 메소드들

메소드 설명
AddNewItemFromVsTemplate ( ProjectItems parent, string templateName, string language, string name ) : ProjectItem

Create a new item in the project

CanFindToolwindow ( System.Guid persistenceGuid ) : bool
CloseCurrentSolution ( __VSSLNSAVEOPTIONS saveoptions ) : void
CloseInEditorWithoutSaving ( string fullFileName ) : void
CreateEmptySolution ( string directory, string solutionName ) : void

Closes the currently open solution (if any), and creates a new solution with the given name.

CreateProjectFromTemplate ( string projectName, string templateName, string language, bool exclusive ) : void

Creates a project.

ExecuteCommand ( CommandID cmd ) : void

Executes a Command (menu item) in the given context

ForceSaveSolution ( ) : void
GetEmbeddedStringResource ( Assembly assembly, string resourceName ) : string

Gets the embedded file identified by the resource name, and converts the file into a string.

GetNewDirectoryName ( string directory, string baseDirectoryName ) : string

Returns the first available directory name on the form [baseDirectoryName]i where [i] starts at 1 and increases until there is an available directory name in the given directory. Also creates the directory to mark it as occupied.

GetNewFileName ( string directory, string baseFileName, string extension ) : string

Returns the first available file name on the form [baseFileName]i.[extension] where [i] starts at 1 and increases until there is an available file name in the given directory. Also creates an empty file with that name to mark that file as occupied.

LoadPackage ( System.Guid packageGuid ) : IVsPackage
ProjectCount ( ) : int

Get current number of open project in solution

SaveDocument ( string documentMoniker ) : void

Save an open document.

WriteEmbeddedResourceToBinaryFile ( Assembly assembly, string embeddedResourceName, string fileName ) : void

Writes an embedded resource to a file.

WriteEmbeddedResourceToFile ( Assembly assembly, string embeddedResourceName, string fileName ) : void

비공개 메소드들

메소드 설명
GetNewFileOrDirectoryNameWithoutCreatingAnything ( string directory, string baseFileName, string extension ) : string

메소드 상세

AddNewItemFromVsTemplate() 공개 메소드

Create a new item in the project
public AddNewItemFromVsTemplate ( ProjectItems parent, string templateName, string language, string name ) : ProjectItem
parent ProjectItems the parent collection for the new item
templateName string
language string
name string
리턴 ProjectItem

CanFindToolwindow() 공개 메소드

public CanFindToolwindow ( System.Guid persistenceGuid ) : bool
persistenceGuid System.Guid
리턴 bool

CloseCurrentSolution() 공개 메소드

public CloseCurrentSolution ( __VSSLNSAVEOPTIONS saveoptions ) : void
saveoptions __VSSLNSAVEOPTIONS
리턴 void

CloseInEditorWithoutSaving() 공개 메소드

public CloseInEditorWithoutSaving ( string fullFileName ) : void
fullFileName string
리턴 void

CreateEmptySolution() 공개 메소드

Closes the currently open solution (if any), and creates a new solution with the given name.
public CreateEmptySolution ( string directory, string solutionName ) : void
directory string
solutionName string Name of new solution.
리턴 void

CreateProjectFromTemplate() 공개 메소드

Creates a project.
public CreateProjectFromTemplate ( string projectName, string templateName, string language, bool exclusive ) : void
projectName string Name of new project.
templateName string Name of project template to use
language string language
exclusive bool
리턴 void

ExecuteCommand() 공개 메소드

Executes a Command (menu item) in the given context
public ExecuteCommand ( CommandID cmd ) : void
cmd System.ComponentModel.Design.CommandID
리턴 void

ForceSaveSolution() 공개 메소드

public ForceSaveSolution ( ) : void
리턴 void

GetEmbeddedStringResource() 공개 정적인 메소드

Gets the embedded file identified by the resource name, and converts the file into a string.
public static GetEmbeddedStringResource ( Assembly assembly, string resourceName ) : string
assembly System.Reflection.Assembly
resourceName string In VS, is DefaultNamespace.FileName?
리턴 string

GetNewDirectoryName() 공개 정적인 메소드

Returns the first available directory name on the form [baseDirectoryName]i where [i] starts at 1 and increases until there is an available directory name in the given directory. Also creates the directory to mark it as occupied.
public static GetNewDirectoryName ( string directory, string baseDirectoryName ) : string
directory string Directory that the file should live in.
baseDirectoryName string
리턴 string

GetNewFileName() 공개 정적인 메소드

Returns the first available file name on the form [baseFileName]i.[extension] where [i] starts at 1 and increases until there is an available file name in the given directory. Also creates an empty file with that name to mark that file as occupied.
public static GetNewFileName ( string directory, string baseFileName, string extension ) : string
directory string Directory that the file should live in.
baseFileName string
extension string may be null, in which case the .[extension] part /// is not added.
리턴 string

LoadPackage() 공개 메소드

public LoadPackage ( System.Guid packageGuid ) : IVsPackage
packageGuid System.Guid
리턴 IVsPackage

ProjectCount() 공개 메소드

Get current number of open project in solution
public ProjectCount ( ) : int
리턴 int

SaveDocument() 공개 메소드

Save an open document.
public SaveDocument ( string documentMoniker ) : void
documentMoniker string for filebased documents this is the full path to the document
리턴 void

WriteEmbeddedResourceToBinaryFile() 공개 정적인 메소드

Writes an embedded resource to a file.
public static WriteEmbeddedResourceToBinaryFile ( Assembly assembly, string embeddedResourceName, string fileName ) : void
assembly System.Reflection.Assembly The name of the assembly that the embedded resource is defined.
embeddedResourceName string The name of the embedded resource.
fileName string The file to write the embedded resource's content.
리턴 void

WriteEmbeddedResourceToFile() 공개 정적인 메소드

public static WriteEmbeddedResourceToFile ( Assembly assembly, string embeddedResourceName, string fileName ) : void
assembly System.Reflection.Assembly
embeddedResourceName string
fileName string
리턴 void