C# Класс Microsoft.WindowsAzure.Management.CloudService.Test.Testing

Various utilities and helpers to facilitate testing.
The name is a compromise for something that pops up easily in intellisense when using MSTest.
Показать файл Открыть проект

Открытые методы

Метод Описание
AssertFiles ( this files, Dictionary assertions ) : void

Validate a collection of assertions against files that are expected to exist in the file system watched by a FileSystemHelper.

Приватные методы

Метод Описание
GetCloudRole ( string rootPath, string name ) : Microsoft.WindowsAzure.Management.CloudService.ServiceConfigurationSchema.RoleSettings

Gets the role settings object from cloud service configuration.

GetLocalRole ( string rootPath, string name ) : Microsoft.WindowsAzure.Management.CloudService.ServiceConfigurationSchema.RoleSettings

Gets the role settings object from local service configuration.

GetWebRole ( string rootPath, string name ) : Microsoft.WindowsAzure.Management.CloudService.ServiceDefinitionSchema.WebRole

Gets web role object from service definition.

GetWorkerRole ( string rootPath, string name ) : Microsoft.WindowsAzure.Management.CloudService.ServiceDefinitionSchema.WorkerRole

Gets worker role object from service definition.

Описание методов

AssertFiles() публичный статический Метод

Validate a collection of assertions against files that are expected to exist in the file system watched by a FileSystemHelper.
public static AssertFiles ( this files, Dictionary assertions ) : void
files this /// The FileSystemHelper watching the files. ///
assertions Dictionary /// Mapping of relative path names to actions that will validate the /// contents of the path. Each action takes a full path to the file /// so it can be opened, verified, etc. Null actions are allowed and /// serve to verify only that a file exists. ///
Результат void