TestSubclasses.cs 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // Copyright (c) .NET Foundation. All rights reserved.
  2. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
  3. using BasicTestApp;
  4. using Microsoft.AspNetCore.Components.E2ETest.Infrastructure.ServerFixtures;
  5. using Microsoft.AspNetCore.Components.E2ETest.Tests;
  6. using Microsoft.AspNetCore.E2ETesting;
  7. using Xunit.Abstractions;
  8. namespace Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests
  9. {
  10. public class ServerBindTest : BindTest
  11. {
  12. public ServerBindTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
  13. : base(browserFixture, serverFixture.WithServerExecution(), output)
  14. {
  15. }
  16. }
  17. public class ServerEventBubblingTest : EventBubblingTest
  18. {
  19. public ServerEventBubblingTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
  20. : base(browserFixture, serverFixture.WithServerExecution(), output)
  21. {
  22. }
  23. }
  24. public class ServerEventTest : EventTest
  25. {
  26. public ServerEventTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
  27. : base(browserFixture, serverFixture.WithServerExecution(), output)
  28. {
  29. }
  30. }
  31. public class ServerInteropTest : InteropTest
  32. {
  33. public ServerInteropTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
  34. : base(browserFixture, serverFixture.WithServerExecution().WithAdditionalArguments(GetAdditionalArguments()), output)
  35. {
  36. }
  37. private static string[] GetAdditionalArguments() =>
  38. new string[] { "--detailedErrors", "true" };
  39. }
  40. public class ServerRoutingTest : RoutingTest
  41. {
  42. public ServerRoutingTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
  43. : base(browserFixture, serverFixture.WithServerExecution(), output)
  44. {
  45. }
  46. }
  47. public class ServerCascadingValueTest : CascadingValueTest
  48. {
  49. public ServerCascadingValueTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
  50. : base(browserFixture, serverFixture.WithServerExecution(), output)
  51. {
  52. }
  53. }
  54. public class ServerEventCallbackTest : EventCallbackTest
  55. {
  56. public ServerEventCallbackTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
  57. : base(browserFixture, serverFixture.WithServerExecution(), output)
  58. {
  59. }
  60. }
  61. public class ServerFormsTest : FormsTest
  62. {
  63. public ServerFormsTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
  64. : base(browserFixture, serverFixture.WithServerExecution(), output)
  65. {
  66. }
  67. }
  68. public class ServerKeyTest : KeyTest
  69. {
  70. public ServerKeyTest(BrowserFixture browserFixture, ToggleExecutionModeServerFixture<Program> serverFixture, ITestOutputHelper output)
  71. : base(browserFixture, serverFixture.WithServerExecution(), output)
  72. {
  73. }
  74. }
  75. }