/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/IntegrationTest/New.IntegrationTests/AbstractInteractiveWindowTest.cs
27 строк
1 KB
Cyrus Najmabadi
Move to file scoped namespace in tests
22 май 2024, 08:22
22 май 2024, 08:22
42e8023
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Threading; using System.Threading.Tasks; using Roslyn.VisualStudio.IntegrationTests; namespace Roslyn.VisualStudio.NewIntegrationTests; public abstract class AbstractInteractiveWindowTest : AbstractIntegrationTest { public override async Task InitializeAsync() { await base.InitializeAsync(); await ClearInteractiveWindowAsync(HangMitigatingCancellationToken); } protected async Task ClearInteractiveWindowAsync(CancellationToken cancellationToken) { await TestServices.InteractiveWindow.InitializeAsync(cancellationToken); await TestServices.InteractiveWindow.ClearScreenAsync(cancellationToken); await TestServices.InteractiveWindow.ShowWindowAsync(cancellationToken); await TestServices.InteractiveWindow.ResetAsync(cancellationToken); } }