/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Components/WebView/test/E2ETest/Program.cs
30 строк
1 KB
Eilon Lipton
Add automated Blazor WebView test using Photino (#50347)
15 сен 2023, 11:12
Не верифицирован
15 сен 2023, 11:12
ee6d623
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.WebViewE2E.Test; class Program { // Yes, this is a Program.Main() inside of a test project! This project is a regular xUnit.net test project, but // some tests also launch this project as a regular executable to launch UI tests. To achieve this, the CSPROJ // has the <StartupObject> property set to indicate that _this_ is the Program.Main() to use when launching as // an executable. [STAThread] static void Main(string[] args) { try { // Future idea: To support multiple tests, the 'args' could specify which test to run, and this code could run // different types/methods/args to control variations of that. Then in WebViewManagerE2ETests the arg could // be specified for each variation when launching this executable. But, for now, we have only 1 test, so no need // for extra complexity. var basicBlazorHybridTest = new BasicBlazorHybridTest(); basicBlazorHybridTest.Run(); } catch (Exception ex) { Console.WriteLine($"Exception while running {typeof(BasicBlazorHybridTest).FullName}: {ex}"); } } }