87 lines
3.4 KiB
C#
87 lines
3.4 KiB
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using BasicTestApp;
|
|
using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures;
|
|
using Microsoft.AspNetCore.Components.E2ETest.Tests;
|
|
using Microsoft.AspNetCore.E2ETesting;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests
|
|
{
|
|
public class ServerBindTest : BindTest
|
|
{
|
|
public ServerBindTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
|
|
: base(browserFixture, serverFixture.WithServerExecution(), output)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class ServerEventBubblingTest : EventBubblingTest
|
|
{
|
|
public ServerEventBubblingTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
|
|
: base(browserFixture, serverFixture.WithServerExecution(), output)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class ServerEventTest : EventTest
|
|
{
|
|
public ServerEventTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
|
|
: base(browserFixture, serverFixture.WithServerExecution(), output)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class ServerInteropTest : InteropTest
|
|
{
|
|
public ServerInteropTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
|
|
: base(browserFixture, serverFixture.WithServerExecution().WithAdditionalArguments(GetAdditionalArguments()), output)
|
|
{
|
|
}
|
|
|
|
private static string[] GetAdditionalArguments() =>
|
|
new string[] { "--circuit-detailed-errors", "true" };
|
|
}
|
|
|
|
public class ServerRoutingTest : RoutingTest
|
|
{
|
|
public ServerRoutingTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
|
|
: base(browserFixture, serverFixture.WithServerExecution(), output)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class ServerCascadingValueTest : CascadingValueTest
|
|
{
|
|
public ServerCascadingValueTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
|
|
: base(browserFixture, serverFixture.WithServerExecution(), output)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class ServerEventCallbackTest : EventCallbackTest
|
|
{
|
|
public ServerEventCallbackTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
|
|
: base(browserFixture, serverFixture.WithServerExecution(), output)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class ServerFormsTest : FormsTest
|
|
{
|
|
public ServerFormsTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
|
|
: base(browserFixture, serverFixture.WithServerExecution(), output)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class ServerKeyTest : KeyTest
|
|
{
|
|
public ServerKeyTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
|
|
: base(browserFixture, serverFixture.WithServerExecution(), output)
|
|
{
|
|
}
|
|
}
|
|
}
|