AssemblyStarter GetTestNames Method Delta Engine Documentation

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

public string[] GetTestNames()

Return Value

Type:  String 
Remarks

Tests: DeltaEngine.Tests.Extensions.AssemblyStarterTests
Examples

2 unit tests call DeltaEngine.Extensions.AssemblyStarter.GetTestNames
[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