Skip to main content
All docs
V25.1
  • .NET Framework 4.6.2+

    EasyTestFixtureContext.CreateApplicationContext(String) Method

    Creates a context for a new application.

    Namespace: DevExpress.EasyTest.Framework

    Assembly: DevExpress.EasyTest.v25.1.dll

    NuGet Package: DevExpress.EasyTest

    Declaration

    public IApplicationContext CreateApplicationContext(
        string applicationName
    )

    Parameters

    Name Type Description
    applicationName String

    The application name

    Returns

    Type Description
    IApplicationContext

    The application context.

    Remarks

    After test execution, call the CloseRunningApplications() method to close the started applications.

    [Fact]
    public void Test() { 
        var appContext = FixtureContext.CreateApplicationContext(BlazorAppName); 
        appContext.RunApplication(); 
        // 
    } 
    public void Dispose() { 
        FixtureContext.CloseRunningApplications(); 
    }
    
    See Also