Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSOE-751: Upgrade to Orchard Core 1.8 #338

Merged
merged 54 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
4894d3c
Upgrade to .NET 8 and OC 1.8.2
Psichorex Jan 18, 2024
ee062f5
Addressing warnings.
Psichorex Jan 19, 2024
10a5c7f
Addressing warnings.
Psichorex Jan 19, 2024
4ec8de8
Addressing warnings.
Psichorex Jan 20, 2024
b5bb1db
Addressing warnings.
Psichorex Jan 20, 2024
5a40871
Addressing warnings.
Psichorex Jan 20, 2024
3a5d6a6
Addressing warnings.
Psichorex Jan 20, 2024
395a8e9
Addressing warnings.
Psichorex Jan 20, 2024
39c1684
Fixing scripts.
Psichorex Jan 28, 2024
fdc6280
Adding comment.
Psichorex Jan 29, 2024
de64721
Merge remote-tracking branch 'origin/dev' into issue/OSOE-751
Psichorex Jan 29, 2024
84c21ef
Better comment.
Psichorex Jan 29, 2024
ce66a08
Using better OS determination.
Psichorex Jan 29, 2024
a7f2e86
Removing directive.
Psichorex Jan 29, 2024
7bce81d
Merge remote-tracking branch 'origin/dev' into issue/OSOE-751
Psichorex Jan 30, 2024
e9727df
Better comment.
Psichorex Jan 30, 2024
f835e45
Revert "Addressing warnings."
Psichorex Jan 30, 2024
ff89b9c
Post revert fixing.
Psichorex Jan 30, 2024
fe32959
Revert "Addressing warnings."
Psichorex Jan 30, 2024
2f7fab5
Revert "Addressing warnings."
Psichorex Jan 30, 2024
cff3b89
Removing directive.
Psichorex Jan 30, 2024
c999744
Fixes after reverting.
Psichorex Jan 30, 2024
7752286
Removing outdated comments
Piedone Jan 31, 2024
edaf11a
Moving justifications above suppressions
Piedone Jan 31, 2024
5d76b0b
Leftover net6.0
Piedone Jan 31, 2024
fe3e473
Code styling
Piedone Jan 31, 2024
9ce9b40
Merge remote-tracking branch 'origin/dev' into issue/OSOE-751
Psichorex Feb 1, 2024
4d0ee5b
Update Lombiq.Tests.UI/Models/FailureDumpItemGeneric.cs
Psichorex Feb 1, 2024
3555725
Addressing warnings.
Psichorex Feb 1, 2024
ec9f2c8
Merge remote-tracking branch 'origin/issue/OSOE-751' into issue/OSOE-751
Psichorex Feb 1, 2024
0d0267e
Removing comment.
Psichorex Feb 1, 2024
1c033d5
Minor fixing.
Psichorex Feb 1, 2024
8b9592e
Using using.
Psichorex Feb 1, 2024
235f52e
Removing supresses and string.Creates from MonkeyTester.
Psichorex Feb 5, 2024
78e4d44
Adding $
Psichorex Feb 5, 2024
a7ea531
Removing directive.
Psichorex Feb 5, 2024
313bdb0
Upgrading packages.
Psichorex Feb 5, 2024
96cd7d8
Merge remote-tracking branch 'origin/dev' into issue/OSOE-751
Psichorex Feb 7, 2024
6a934b2
Merge remote-tracking branch 'origin/dev' into issue/OSOE-751
Psichorex Feb 13, 2024
d958953
Post merge fix.
Psichorex Feb 13, 2024
9d29574
Merge remote-tracking branch 'origin/dev' into issue/OSOE-751
Psichorex Feb 14, 2024
b30e72a
Using alpha of Lombiq.Tests.
Psichorex Feb 16, 2024
59512f5
Using alpha of Lombiq.HelpfulLibraries.
Psichorex Feb 16, 2024
6035820
Using issue branch reference.
Psichorex Feb 16, 2024
3454cf5
Atata package upgrade.
Psichorex Feb 18, 2024
e040a83
Removing obsolate methods.
Psichorex Feb 18, 2024
7a10740
Removing obsolate methods.
Psichorex Feb 18, 2024
404fc69
Reverting Atata changes.
Psichorex Feb 19, 2024
e59bff0
Revert "Removing obsolate methods."
Psichorex Feb 19, 2024
73e0fd4
Revert "Removing obsolate methods."
Psichorex Feb 19, 2024
6df0d53
Merge remote-tracking branch 'origin/dev' into issue/OSOE-751
Psichorex Feb 20, 2024
417bb2a
Removing leftover comment
Piedone Feb 20, 2024
a62bc30
Merge remote-tracking branch 'origin/dev' into issue/OSOE-751
Psichorex Feb 21, 2024
e91acbd
Reverting to dev reference.
Psichorex Feb 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPublishable>false</IsPublishable>
<DefaultItemExcludes>$(DefaultItemExcludes);.git*;node_modules\**</DefaultItemExcludes>
</PropertyGroup>
Expand Down Expand Up @@ -33,8 +33,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="OrchardCore" Version="1.7.0" />
<PackageReference Include="OrchardCore.Email.Abstractions" Version="1.7.0" />
<PackageReference Include="OrchardCore" Version="1.8.2" />
<PackageReference Include="OrchardCore.Email.Abstractions" Version="1.8.2" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Lombiq.Tests.UI.Samples/Helpers/SetupHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private static void AssertSetupSuccessful(UITestContext context)
{
var validationErrors = context.GetAll(By.ClassName("field-validation-error"));

if (!validationErrors.Any()) throw;
if (validationErrors.Count == 0) throw;

var errors = "\n- " + validationErrors.Select(element => element.Text.Trim()).Join("\n- ");
throw new AssertionException($"Setup has failed with the following validation errors:{errors}");
Expand Down
2 changes: 1 addition & 1 deletion Lombiq.Tests.UI.Samples/Lombiq.Tests.UI.Samples.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<!-- Eliminates problem with dotnet publish caused by duplicate .htmlvalidate.json file. See
https://docs.microsoft.com/en-us/dotnet/core/compatibility/sdk/6.0/duplicate-files-in-output. -->
Expand Down
2 changes: 0 additions & 2 deletions Lombiq.Tests.UI.Shortcuts/Controllers/ErrorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Diagnostics.CodeAnalysis;

namespace Lombiq.Tests.UI.Shortcuts.Controllers;

Expand All @@ -12,7 +11,6 @@ public class ErrorController : Controller
public const string ExceptionMessage = "This action intentionally causes an exception!";

// This only happens in the CI for some reason.
[SuppressMessage("Usage", "CA1822:Mark members as static", Justification = "It's a controller action.")]
[AllowAnonymous]
public IActionResult Index() =>
throw new InvalidOperationException(ExceptionMessage);
Expand Down
20 changes: 10 additions & 10 deletions Lombiq.Tests.UI.Shortcuts/Lombiq.Tests.UI.Shortcuts.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPublishable>false</IsPublishable>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<DefaultItemExcludes>$(DefaultItemExcludes);.git*;node_modules\**</DefaultItemExcludes>
Expand Down Expand Up @@ -34,15 +34,15 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="OrchardCore.Module.Targets" Version="1.7.0" />
<PackageReference Include="OrchardCore.Tenants" Version="1.7.0" />
<PackageReference Include="OrchardCore.Themes" Version="1.7.0" />
<PackageReference Include="OrchardCore.Users" Version="1.7.0" />
<PackageReference Include="OrchardCore.Media.Abstractions" Version="1.7.0" />
<PackageReference Include="OrchardCore.Recipes.Abstractions" Version="1.7.0" />
<PackageReference Include="OrchardCore.Abstractions" Version="1.7.0" />
<PackageReference Include="OrchardCore.ResourceManagement.Abstractions" Version="1.7.0" />
<PackageReference Include="OrchardCore.Workflows" Version="1.7.0" />
<PackageReference Include="OrchardCore.Module.Targets" Version="1.8.2" />
<PackageReference Include="OrchardCore.Tenants" Version="1.8.2" />
<PackageReference Include="OrchardCore.Themes" Version="1.8.2" />
<PackageReference Include="OrchardCore.Users" Version="1.8.2" />
<PackageReference Include="OrchardCore.Media.Abstractions" Version="1.8.2" />
<PackageReference Include="OrchardCore.Recipes.Abstractions" Version="1.8.2" />
<PackageReference Include="OrchardCore.Abstractions" Version="1.8.2" />
<PackageReference Include="OrchardCore.ResourceManagement.Abstractions" Version="1.8.2" />
<PackageReference Include="OrchardCore.Workflows" Version="1.8.2" />
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' != 'true'">
Expand Down
18 changes: 9 additions & 9 deletions Lombiq.Tests.UI.Shortcuts/Manifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
Category = "Development",
Description = "WARNING: Only enable this feature in the UI testing environment. Provides shortcuts for common " +
"operations that UI tests might want to do or check.",
Dependencies = new[]
{
Dependencies =
[
"OrchardCore.ContentManagement",
"OrchardCore.ContentTypes",
"OrchardCore.DisplayManagement",
"OrchardCore.Roles",
"OrchardCore.Tenants",
"OrchardCore.Users",
}
]
)]

[assembly: Feature(
Expand All @@ -37,19 +37,19 @@
Name = "Media Cache Purge - Shortcuts - Lombiq UI Testing Toolbox",
Category = "Development",
Description = "WARNING: Only enable this feature in the UI testing environment. Provides shortcut for Media Cache Purge.",
Dependencies = new[]
{
Dependencies =
[
"OrchardCore.Media.Cache",
}
]
)]

[assembly: Feature(
Id = Workflows,
Name = "Workflows - Shortcuts - Lombiq UI Testing Toolbox",
Category = "Development",
Description = "WARNING: Only enable this feature in the UI testing environment. Provides shortcut for Workflows.",
Dependencies = new[]
{
Dependencies =
[
"OrchardCore.Workflows.Http",
}
]
)]
2 changes: 1 addition & 1 deletion Lombiq.Tests.UI.Tests.UI/Lombiq.Tests.UI.Tests.UI.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -659,9 +659,9 @@ await context
public static Task ExecuteTestAsync(
this UITestContext context, string testName, Func<Task> testFunctionAsync)
{
if (context is null) throw new ArgumentNullException(nameof(context));
if (testName is null) throw new ArgumentNullException(nameof(testName));
if (testFunctionAsync is null) throw new ArgumentNullException(nameof(testFunctionAsync));
ArgumentNullException.ThrowIfNull(context);
ArgumentNullException.ThrowIfNull(testName);
ArgumentNullException.ThrowIfNull(testFunctionAsync);

return ExecuteTestInnerAsync(context, testName, testFunctionAsync);
}
Expand Down
2 changes: 1 addition & 1 deletion Lombiq.Tests.UI/Extensions/ExtendedLoggingExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private static TResult ExecuteSection<TResult>(this UITestContext context, LogSe
throw new InvalidOperationException("Impossible to reach.");
});

private static Task ExecuteSectionAsync(this UITestContext context, LogSection section, Func<Task> functionAsync) =>
private static Task<bool> ExecuteSectionAsync(this UITestContext context, LogSection section, Func<Task> functionAsync) =>
Piedone marked this conversation as resolved.
Show resolved Hide resolved
context.ExecuteSectionAsync(
section,
async () =>
Expand Down
6 changes: 2 additions & 4 deletions Lombiq.Tests.UI/Extensions/FormUITestContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ public static void FillInMonacoEditor(
{
var script = $@"
monaco.editor.getEditors().find((element) =>
element.getContainerDomNode().id == {JsonConvert.SerializeObject(editorId)})
.getModel().setValue({JsonConvert.SerializeObject(text)});";
Piedone marked this conversation as resolved.
Show resolved Hide resolved
element.getContainerDomNode().id == {JsonConvert.SerializeObject(editorId)}).setValue({JsonConvert.SerializeObject(text)});";

context.ExecuteScript(script);
}
Expand All @@ -125,8 +124,7 @@ public static string GetMonacoEditorText(
{
var script = $@"
return monaco.editor.getEditors().find((element) =>
element.getContainerDomNode().id == {JsonConvert.SerializeObject(editorId)})
.getModel().getValue();";
element.getContainerDomNode().id == {JsonConvert.SerializeObject(editorId)}).getValue();";

return context.ExecuteScript(script) as string;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using OrchardCore.ContentFields.ViewModels;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Net.Http;
Expand Down Expand Up @@ -37,7 +38,9 @@ public static Task GoToAdminRelativeUrlAsync(
public static Task GoToAbsoluteUrlAsync(this UITestContext context, Uri absoluteUri, bool onlyIfNotAlreadyThere = true) =>
context.ExecuteLoggedAsync(
nameof(GoToAbsoluteUrlAsync),
$"{absoluteUri} ({(onlyIfNotAlreadyThere ? "navigating also" : "not navigating")} if already there)",
string.Create(
CultureInfo.InvariantCulture,
$"{absoluteUri} ({(onlyIfNotAlreadyThere ? "navigating also" : "not navigating")} if already there)"),
Piedone marked this conversation as resolved.
Show resolved Hide resolved
async () =>
{
if (onlyIfNotAlreadyThere && context.GetCurrentUri() == absoluteUri) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,7 @@ public static Task<ApplicationInfo> GetApplicationInfoAsync(this UITestContext c
context.GetApi().GetApplicationInfoFromApiAsync();

// This is required to instantiate ILogger<>.
#pragma warning disable S2094 // Classes should not be empty
private sealed class ExecuteRecipeShortcut { }
#pragma warning restore S2094 // Classes should not be empty

/// <summary>
/// Executes a recipe identified by its name directly.
Expand Down
2 changes: 1 addition & 1 deletion Lombiq.Tests.UI/Extensions/ShouldlyExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static void ShouldBeEmptyWhen<TItem, TMessage>(
JsonSerializerOptions jsonSerializerOptions = null)
{
var results = enumerable.Where(condition).ToList();
if (!results.Any()) return;
if (results.Count == 0) return;

var message = messageTransform == null
? JsonSerializer.Serialize(results, jsonSerializerOptions)
Expand Down
31 changes: 24 additions & 7 deletions Lombiq.Tests.UI/Extensions/TypedRouteUITestContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,19 @@ public static string GetRelativeUrlOfAction<TController>(
this UITestContext context,
Expression<Action<TController>> actionExpression,
params (string Key, object Value)[] additionalArguments)
where TController : ControllerBase =>
TypedRoute
.CreateFromExpression(actionExpression, additionalArguments, CreateServiceProvider(context))
where TController : ControllerBase
{
#pragma warning disable CA2000 // Dispose objects before losing scope
Piedone marked this conversation as resolved.
Show resolved Hide resolved
// We can't dispose the scope here because it would lead to exceptions in the consumers.
var serviceProvider = CreateServiceProvider(context);
#pragma warning restore CA2000 // Dispose objects before losing scope
var route = TypedRoute
.CreateFromExpression(actionExpression, additionalArguments, serviceProvider)
.ToString();

return route;
}

/// <summary>
/// Gets the relative URL generated by <see cref="TypedRoute"/> for the <paramref name="actionExpressionAsync"/> in
/// the <typeparamref name="TController"/>.
Expand All @@ -57,11 +65,20 @@ public static string GetRelativeUrlOfAction<TController>(
this UITestContext context,
Expression<Func<TController, Task>> actionExpressionAsync,
params (string Key, object Value)[] additionalArguments)
where TController : ControllerBase =>
TypedRoute
.CreateFromExpression(actionExpressionAsync.StripResult(), additionalArguments, CreateServiceProvider(context))
where TController : ControllerBase
{
#pragma warning disable CA2000 // Dispose objects before losing scope
// We can't dispose the scope here because it would lead to exceptions in the consumers.
var serviceProvider = CreateServiceProvider(context);
#pragma warning restore CA2000 // Dispose objects before losing scope

var route = TypedRoute
.CreateFromExpression(actionExpressionAsync.StripResult(), additionalArguments, serviceProvider)
.ToString();

return route;
}

/// <summary>
/// Gets the absolute URL generated by <see cref="TypedRoute"/> for the <paramref name="actionExpression"/> in the
/// <typeparamref name="TController"/>.
Expand All @@ -84,7 +101,7 @@ public static Uri GetAbsoluteUrlOfAction<TController>(
where TController : ControllerBase =>
context.GetAbsoluteUri(context.GetRelativeUrlOfAction(actionExpressionAsync, additionalArguments));

private static IServiceProvider CreateServiceProvider(UITestContext context)
private static ServiceProvider CreateServiceProvider(UITestContext context)
{
var services = new ServiceCollection();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static void AssertVisualVerificationOnAllResolutions(

if (exceptions.Count == 1) throw exceptions.Single();

if (exceptions.Any())
if (exceptions.Count != 0)
{
// The UITestExecutionSession doesn't support AggregateException with multiple inner exceptions, so we just
// concatenate the exceptions if there are multiple.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static async Task LogsShouldBeEmptyAsync(
.SplitByNewLines()
.Where(line => line.Contains("|ERROR|"));

if (permittedErrorLines.Any())
if (permittedErrorLines.Count != 0)
{
errorLines = errorLines.Where(line => !permittedErrorLines.Any(line.ContainsOrdinalIgnoreCase));
}
Expand Down
4 changes: 3 additions & 1 deletion Lombiq.Tests.UI/Helpers/WebAppConfigHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ namespace Lombiq.Tests.UI.Helpers;

public static class WebAppConfigHelper
{
private static readonly string[] Separator = ["src", "test"];

/// <summary>
/// Retrieves the absolute path to the assembly (DLL) of the application being tested.
/// </summary>
Expand All @@ -24,7 +26,7 @@ public static string GetAbsoluteApplicationAssemblyPath(string webAppName, strin
else
{
var outputFolderContainingPath = Path.Combine(
AppContext.BaseDirectory.Split(new[] { "src", "test" }, StringSplitOptions.RemoveEmptyEntries)[0],
AppContext.BaseDirectory.Split(Separator, StringSplitOptions.RemoveEmptyEntries)[0],
"src",
webAppName,
"bin");
Expand Down
10 changes: 5 additions & 5 deletions Lombiq.Tests.UI/Lombiq.Tests.UI.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPublishable>false</IsPublishable>
<DefaultItemExcludes>$(DefaultItemExcludes);.git*</DefaultItemExcludes>
<!-- With these the driver exe files will be copied to all projects referencing this project. Otherwise all child
Expand Down Expand Up @@ -72,10 +72,10 @@
<PackageReference Include="Microsoft.SqlServer.DACFx" Version="162.0.52" />
<PackageReference Include="Microsoft.SqlServer.SqlManagementObjects" Version="170.18.0" />
<PackageReference Include="Mono.Posix.NETStandard" Version="1.0.0" />
<PackageReference Include="OrchardCore.ContentFields" Version="1.7.0" />
<PackageReference Include="OrchardCore.Logging.NLog" Version="1.7.0" />
<PackageReference Include="OrchardCore.Abstractions" Version="1.7.0" />
<PackageReference Include="OrchardCore.Recipes.Core" Version="1.7.0" />
<PackageReference Include="OrchardCore.ContentFields" Version="1.8.2" />
<PackageReference Include="OrchardCore.Logging.NLog" Version="1.8.2" />
<PackageReference Include="OrchardCore.Abstractions" Version="1.8.2" />
<PackageReference Include="OrchardCore.Recipes.Core" Version="1.8.2" />
<PackageReference Include="Refit.HttpClientFactory" Version="7.0.0" />
<PackageReference Include="Sarif.Sdk" Version="4.3.7" />
<PackageReference Include="Selenium.Axe" Version="4.0.14" />
Expand Down
5 changes: 1 addition & 4 deletions Lombiq.Tests.UI/Models/FailureDumpItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ public FailureDumpItem(

public Task<Stream> GetStreamAsync()
{
if (_disposed)
{
throw new ObjectDisposedException(nameof(FailureDumpItem));
}
ObjectDisposedException.ThrowIf(_disposed, this);

return _getStream();
}
Expand Down
5 changes: 1 addition & 4 deletions Lombiq.Tests.UI/Models/FailureDumpItemGeneric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ public FailureDumpItemGeneric(

public Task<Stream> GetStreamAsync()
{
if (_disposed)
{
throw new ObjectDisposedException(nameof(FailureDumpItemGeneric<TContent>));
}
ObjectDisposedException.ThrowIf(_disposed, nameof(FailureDumpItemGeneric<TContent>));
Psichorex marked this conversation as resolved.
Show resolved Hide resolved

if (_content is Stream stream && _getStream == null)
{
Expand Down
2 changes: 1 addition & 1 deletion Lombiq.Tests.UI/Models/InstanceCommandLineArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Lombiq.Tests.UI.Models;

public class InstanceCommandLineArgumentsBuilder
{
private readonly List<string> _arguments = new();
private readonly List<string> _arguments = [];
Psichorex marked this conversation as resolved.
Show resolved Hide resolved

public IEnumerable<string> Arguments => _arguments;

Expand Down
2 changes: 1 addition & 1 deletion Lombiq.Tests.UI/Models/SafeWaitAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class SafeWaitAsync<T> : IWait<T>

private readonly IClock _clock;

private readonly List<Type> _ignoredExceptions = new();
private readonly List<Type> _ignoredExceptions = [];
Psichorex marked this conversation as resolved.
Show resolved Hide resolved

/// <summary>
/// Initializes a new instance of the <see cref="SafeWaitAsync{T}"/> class.
Expand Down
Loading