C# Класс Open.TestHarness.Model.ViewTestClass

Represents a method decorated with the [ViewTestClass] attribute.
Наследование: Open.Core.Common.ModelBase
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Activate ( ) : bool

Loads the Type from the TypeName (if not already activated).

GetSingleton ( Type type, string xapFileName ) : ViewTestClass

Create a new singleton instance of the model.

GetSingleton ( string typeName, string customName, string assemblyName, string xapFileName ) : ViewTestClass

Create a new singleton instance of the model.

GetTestMethod ( string name ) : ViewTest

Gets the [ViewTest] method with the given name.

IsEquivalent ( Type compareType ) : bool

Determines whether the specified type is represented by this model.

IsEquivalent ( string typeName, string assemblyName ) : bool

Determines whether the specified values match this model.

Reload ( ) : void

Causes the a new test instance to be loaded.

ResetTests ( bool runDefaultTest ) : void

Resets the view tests.

ViewTestClass ( Type classType, string xapFileName ) : System
ViewTestClass ( string typeName, string customName, string assemblyName, string xapFileName ) : System

Защищенные методы

Метод Описание
OnDisposed ( ) : void

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

Метод Описание
FireExecuteRequest ( ViewTest test ) : void
GetAssembly ( ) : Assembly
Initialize ( Type classType, string xapFileName ) : void
InitializeNames ( string typeName, string assemblyName, string xapFileName ) : void
OnTestExecuteRequest ( object sender, EventArgs e ) : void
PopulateViewTests ( ) : void
RaiseIsCurrentChanged ( ) : void

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

Activate() публичный Метод

Loads the Type from the TypeName (if not already activated).
public Activate ( ) : bool
Результат bool

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

Create a new singleton instance of the model.
public static GetSingleton ( Type type, string xapFileName ) : ViewTestClass
type System.Type The type to model.
xapFileName string The name of the XAP file containing the class.
Результат ViewTestClass

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

Create a new singleton instance of the model.
public static GetSingleton ( string typeName, string customName, string assemblyName, string xapFileName ) : ViewTestClass
typeName string The full name of the type.
customName string The custom name of the attribute (Null if not required).
assemblyName string The assembly name.
xapFileName string The name of the XAP file containing the class.
Результат ViewTestClass

GetTestMethod() публичный Метод

Gets the [ViewTest] method with the given name.
public GetTestMethod ( string name ) : ViewTest
name string The name of the method to retrieve.
Результат ViewTest

IsEquivalent() публичный Метод

Determines whether the specified type is represented by this model.
public IsEquivalent ( Type compareType ) : bool
compareType System.Type
Результат bool

IsEquivalent() публичный Метод

Determines whether the specified values match this model.
public IsEquivalent ( string typeName, string assemblyName ) : bool
typeName string The type name.
assemblyName string The assembly name.
Результат bool

OnDisposed() защищенный Метод

protected OnDisposed ( ) : void
Результат void

Reload() публичный Метод

Causes the a new test instance to be loaded.
public Reload ( ) : void
Результат void

ResetTests() публичный Метод

Resets the view tests.
public ResetTests ( bool runDefaultTest ) : void
runDefaultTest bool Flag indicating if the default test should be executed.
Результат void

ViewTestClass() публичный Метод

public ViewTestClass ( Type classType, string xapFileName ) : System
classType System.Type
xapFileName string
Результат System

ViewTestClass() публичный Метод

public ViewTestClass ( string typeName, string customName, string assemblyName, string xapFileName ) : System
typeName string
customName string
assemblyName string
xapFileName string
Результат System