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 all 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
3 changes: 0 additions & 3 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 @@ -11,8 +10,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
22 changes: 11 additions & 11 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,23 +34,23 @@
</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'">
<ProjectReference Include="..\..\..\src\Libraries\Lombiq.HelpfulLibraries\Lombiq.HelpfulLibraries.OrchardCore\Lombiq.HelpfulLibraries.OrchardCore.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.HelpfulLibraries.OrchardCore" Version="8.1.1-alpha.5.tdeal-16" />
<PackageReference Include="Lombiq.HelpfulLibraries.OrchardCore" Version="8.1.1-alpha.7.osoe-751" />
</ItemGroup>

</Project>
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 @@ -131,7 +131,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 @@ -342,10 +342,7 @@ public static async Task PurgeMediaCacheDirectlyAsync(this UITestContext context
public static Task<ApplicationInfo> GetApplicationInfoAsync(this UITestContext context) =>
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 Expand Up @@ -646,7 +643,7 @@ internal static async Task WaitInteractiveModeAsync(this UITestContext context)
}

private static bool IsAdminTheme(IManifestInfo manifest) =>
manifest.Tags.Any(tag => tag.EqualsOrdinalIgnoreCase(ManifestConstants.AdminTag));
manifest.Tags.Any(tag => tag.EqualsOrdinalIgnoreCase(value: ManifestConstants.AdminTag));

private static async Task<bool> PermissionExistsAsync(
IEnumerable<IPermissionProvider> permissionProviders, string permissionName) =>
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
25 changes: 18 additions & 7 deletions Lombiq.Tests.UI/Extensions/TypedRouteUITestContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,16 @@ 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
{
using var serviceProvider = CreateServiceProvider(context);
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 +62,17 @@ 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
{
using var serviceProvider = CreateServiceProvider(context);

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 +95,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
8 changes: 5 additions & 3 deletions Lombiq.Tests.UI/Helpers/WebAppConfigHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ 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>
/// <param name="webAppName">The web app's project name.</param>
/// <param name="frameworkFolderName">
/// The name of the folder that corresponds to the .NET version in the build output folder (e.g. "net6.0").
/// The name of the folder that corresponds to the .NET version in the build output folder (e.g. "net8.0").
/// </param>
/// <returns>The absolute path to the assembly (DLL) of the application being tested.</returns>
public static string GetAbsoluteApplicationAssemblyPath(string webAppName, string frameworkFolderName = "net6.0")
public static string GetAbsoluteApplicationAssemblyPath(string webAppName, string frameworkFolderName = "net8.0")
{
string baseDirectory;

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
22 changes: 11 additions & 11 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 @@ -67,15 +67,15 @@
<PackageReference Include="Azure.Storage.Blobs" Version="12.18.0" />
<PackageReference Include="Ben.Demystifier" Version="0.4.1" />
<PackageReference Include="Codeuctivity.ImageSharpCompare" Version="3.0.183" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<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 All @@ -102,10 +102,10 @@
<Import Condition="'$(NuGetBuild)' != 'true'" Project="..\..\..\src\Utilities\Lombiq.Npm.Targets\Lombiq.Npm.Targets.targets" />

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests" Version="2.2.5" />
<PackageReference Include="Lombiq.HelpfulLibraries.Cli" Version="8.1.1-alpha.5.tdeal-16" />
<PackageReference Include="Lombiq.HelpfulLibraries.OrchardCore" Version="8.1.1-alpha.5.tdeal-16" />
<PackageReference Include="Lombiq.HelpfulLibraries.Refit" Version="8.1.1-alpha.5.tdeal-16" />
<PackageReference Include="Lombiq.Tests" Version="2.2.6-alpha.0.osoe-751" />
<PackageReference Include="Lombiq.HelpfulLibraries.Cli" Version="8.1.1-alpha.7.osoe-751" />
<PackageReference Include="Lombiq.HelpfulLibraries.OrchardCore" Version="8.1.1-alpha.7.osoe-751" />
<PackageReference Include="Lombiq.HelpfulLibraries.Refit" Version="8.1.1-alpha.7.osoe-751" />
<PackageReference Include="Lombiq.Npm.Targets" Version="1.4.0" />
</ItemGroup>

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, this);
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
Loading