C# 클래스 Microsoft.Silverlight.Testing.UnitTestSystem

A central entry point for unit test projects and applications.
파일 보기 프로젝트 열기: garyjohnson/wpnest 1 사용 예제들

공개 메소드들

메소드 설명
CreateDefaultSettings ( ) : UnitTestSettings

Creates the default settings that would be used by the UnitTestHarness if none were specified.

Assumes the calling assembly is a test assembly.

CreateTestPage ( ) : UIElement

Creates a new TestPage visual that in turn will setup and begin a unit test run.

Assumes the calling assembly is a test assembly.

CreateTestPage ( UnitTestSettings settings ) : UIElement

Creates a new TestPage visual that in turn will setup and begin a unit test run.

Assumes the calling assembly is a test assembly.

PrepareCustomLogProviders ( UnitTestSettings settings ) : void

A partial method for PrepareDefaultLogManager.

RegisterUnitTestProvider ( IUnitTestProvider provider ) : void

Register another available unit test provider for the unit test system.

SetStandardLogProviders ( UnitTestSettings settings ) : void

Prepares the default log manager.

SetTestService ( UnitTestSettings settings ) : void

A partial method for setting the TestService.

비공개 메소드들

메소드 설명
CreateDefaultSettings ( Assembly callingAssembly ) : UnitTestSettings

Create a default settings object for unit testing.

MergeSettingsAndParameters ( TestServiceProvider testService, UnitTestSettings inputSettings ) : void

Merge any settings provided by a test service with the parameters that were passed inside the TestHarnessSettings.

OnTestHarnessCompleted ( Microsoft.Silverlight.Testing.Harness.TestHarnessCompletedEventArgs args ) : void

Call the TestHarnessCompleted event.

PrepareDefaultLogManagerOptional ( Microsoft.Silverlight.Testing.Harness.TestHarnessSettings settings ) : void

A partial method for PrepareDefaultLogManager.

PrepareTestService ( UnitTestSettings inputSettings, System.Action complete ) : void

Initializes the test service and its contained providers.

Run ( UnitTestSettings settings ) : void
SetTestService ( Microsoft.Silverlight.Testing.Harness.TestHarnessSettings settings ) : void

A partial method for setting the TestService.

TryAddVisualStudioLogProvider ( UnitTestSettings settings ) : void

Tries to instantiate and initialize a VSTT provider. Requires that XLinq is available and included in the application package.

메소드 상세

CreateDefaultSettings() 공개 정적인 메소드

Creates the default settings that would be used by the UnitTestHarness if none were specified.
Assumes the calling assembly is a test assembly.

CreateTestPage() 공개 정적인 메소드

Creates a new TestPage visual that in turn will setup and begin a unit test run.
Assumes the calling assembly is a test assembly.
public static CreateTestPage ( ) : UIElement
리턴 System.Windows.UIElement

CreateTestPage() 공개 정적인 메소드

Creates a new TestPage visual that in turn will setup and begin a unit test run.
Assumes the calling assembly is a test assembly.
public static CreateTestPage ( UnitTestSettings settings ) : UIElement
settings UnitTestSettings Test harness settings to be applied.
리턴 System.Windows.UIElement

PrepareCustomLogProviders() 공개 정적인 메소드

A partial method for PrepareDefaultLogManager.
public static PrepareCustomLogProviders ( UnitTestSettings settings ) : void
settings UnitTestSettings The test harness settings.
리턴 void

RegisterUnitTestProvider() 공개 정적인 메소드

Register another available unit test provider for the unit test system.
public static RegisterUnitTestProvider ( IUnitTestProvider provider ) : void
provider IUnitTestProvider A unit test provider.
리턴 void

SetStandardLogProviders() 공개 정적인 메소드

Prepares the default log manager.
public static SetStandardLogProviders ( UnitTestSettings settings ) : void
settings UnitTestSettings The test harness settings.
리턴 void

SetTestService() 공개 정적인 메소드

A partial method for setting the TestService.
public static SetTestService ( UnitTestSettings settings ) : void
settings UnitTestSettings The test harness settings.
리턴 void