AssemblyStarter ClassDelta Engine Documentation
Used to start VisualTests from assemblies in an extra AppDomain for the SampleBrowser. Also used in the ContinuousUpdater to get all tests and start them safely in the Editor. View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Extensions AssemblyStarter

Namespace: DeltaEngine.Extensions
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class AssemblyStarter : IDisposable

The AssemblyStarter type exposes the following members.

Constructors

  NameDescription
Public methodAssemblyStarter
Initializes a new instance of the AssemblyStarter class
Top
Methods

  NameDescription
Public methodDispose
Releases all resources used by the AssemblyStarter
Public methodGetTestNames
Public methodStart
Top
Remarks

Tests: DeltaEngine.Tests.Extensions.AssemblyStarterTests
Examples

4 unit tests call DeltaEngine.Extensions.AssemblyStarter
[Test, Ignore]
public void StartGlobalTimeTest()
{
    using (var starter = new AssemblyStarter("DeltaEngine.Tests.dll", false))
        starter.Start("GlobalTimeTests", "CalculateFpsWithStopwatch");
}
[Test, Ignore]
public void FindAllDeltaEngineTests()
{
    using (var starter = new AssemblyStarter("DeltaEngine.Tests.dll", false))
        foreach (var test in starter.GetTestNames())
            Console.WriteLine(test);
}
[Test, Ignore]
public void FindAllGraphicsTests()
{
    const string TestAssemblyFilename =
        @"c:\code\DeltaEngine\Graphics\Tests\bin\Debug\DeltaEngine.Graphics.Tests.dll";
    using (var starter = new AssemblyStarter(TestAssemblyFilename, false))
        foreach (var test in starter.GetTestNames())
            Console.WriteLine(test);
}
See Also