WindowsAppExpander

Class Overview
Extends test target applications to make them test-ready.
Can load native DLLs as well as assemblies.
When this class is used to load an assembly, references are resolved without placing the assembly in the search path of the target application.


public static bool LoadLibrary(WindowsAppFriend app, string fileName)
Description
Causes the target application to load the indicated native DLL.

Return Value
Success / Failure

Parameters
app
Application manipulation object.
fileName
Full path of DLL file.



public static void LoadAssemblyFromFile(WindowsAppFriend app, string filePath)
Description
Causes the target application to load an assembly from an indicated path.

Parameters
app
Application manipulation object.
filePath
Full path of assembly


public static void LoadAssemblyFromFullName(WindowsAppFriend app, string assemblyString)
Description
Causes the target application to load an assembly using an indicated full name.
Parameters
app
Application manipulation object.
assemblyString
Full name of assembly.
 


public static void LoadAssemblyFromFile(WindowsAppFriend app, string assemblyString, string filePath)
Description
Causes the target application to load an assembly from an indicated path.
If can't load assembly by Assembly.Load, load by Assembly.LoadFile.

Parameters
app
Application manipulation object.
assemblyString
Full name of assembly
filePath
Full path of assembly



public static void LoadAssemblyFromFile(WindowsAppFriend app, Assembly assembly)
Description
Causes the target application to load an assembly from an indicated path.
If can't load assembly by Assembly.Load, load by Assembly.LoadFile.

Parameters
app
Application manipulation object.
assembly
Assembly



JR