C# 클래스 Microsoft.WindowsAzure.MobileServices.TestFramework.TestHarness

Harness for a test framework that allows asynchronous unit testing.
파일 보기 프로젝트 열기: Azure/azure-mobile-apps-net-client 1 사용 예제들

공개 메소드들

메소드 설명
DecodeBase64String ( string storageContainerSasToken ) : string
GenerateTestConfigFromInputFile ( string storageSasToken, string inputFileContent ) : Microsoft.WindowsAzure.MobileServices.TestFramework.TestConfig
GetBlobStorageSasUrl ( string storageContainerUrl, string storageContainerSasToken, string filePath ) : string
LoadTestAssembly ( Assembly testAssembly ) : void

Load the tests from the given assembly.

Log ( string message ) : void

Logs a message.

ReadFileFromBlobStorageAsync ( string blobStorageSasUrl ) : Task
RunAsync ( ) : void

Run the unit tests.

TestHarness ( ) : System

Initializes a new instance of the TestHarness class.

UploadToBlobContainerAsync ( string blobStorageSasUrl, string fileContent ) : Task

비공개 메소드들

메소드 설명
CreateGroup ( Type type ) : Microsoft.WindowsAzure.MobileServices.TestFramework.TestGroup
CreateMethod ( Type type, object instance, MethodInfo method ) : Microsoft.WindowsAzure.MobileServices.TestFramework.TestMethod
FilterTests ( ) : int

Filter out any test methods basd on the current settings.

GetBlobStorageUrl ( string storageContainerUrl, string filePath ) : string
LoadTestAssembly ( TestHarness harness, Assembly testAssembly ) : void

메소드 상세

DecodeBase64String() 공개 정적인 메소드

public static DecodeBase64String ( string storageContainerSasToken ) : string
storageContainerSasToken string
리턴 string

GenerateTestConfigFromInputFile() 공개 정적인 메소드

public static GenerateTestConfigFromInputFile ( string storageSasToken, string inputFileContent ) : Microsoft.WindowsAzure.MobileServices.TestFramework.TestConfig
storageSasToken string
inputFileContent string
리턴 Microsoft.WindowsAzure.MobileServices.TestFramework.TestConfig

GetBlobStorageSasUrl() 공개 정적인 메소드

public static GetBlobStorageSasUrl ( string storageContainerUrl, string storageContainerSasToken, string filePath ) : string
storageContainerUrl string
storageContainerSasToken string
filePath string
리턴 string

LoadTestAssembly() 공개 메소드

Load the tests from the given assembly.
public LoadTestAssembly ( Assembly testAssembly ) : void
testAssembly System.Reflection.Assembly The assembly from which to load tests.
리턴 void

Log() 공개 메소드

Logs a message.
public Log ( string message ) : void
message string The message.
리턴 void

ReadFileFromBlobStorageAsync() 공개 정적인 메소드

public static ReadFileFromBlobStorageAsync ( string blobStorageSasUrl ) : Task
blobStorageSasUrl string
리턴 Task

RunAsync() 공개 메소드

Run the unit tests.
public RunAsync ( ) : void
리턴 void

TestHarness() 공개 메소드

Initializes a new instance of the TestHarness class.
public TestHarness ( ) : System
리턴 System

UploadToBlobContainerAsync() 공개 정적인 메소드

public static UploadToBlobContainerAsync ( string blobStorageSasUrl, string fileContent ) : Task
blobStorageSasUrl string
fileContent string
리턴 Task