From 9bda64ec4b41d8fd677ea48623e76b9a41748e16 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Fri, 13 Nov 2026 14:41:17 -0500 Subject: [PATCH] test(theme): verify bUnit 2.7.2 with patched DOM parser --- ZB.MOM.WW.Theme/Directory.Packages.props | 4 +- .../validation/bunit-2.7.2/Theme/README.md | 8 + .../bunit-2.7.2/Theme/after-packages.txt | 58 +++ .../validation/bunit-2.7.2/Theme/after.log | 10 + .../bunit-2.7.2/Theme/after/after.trx | 448 ++++++++++++++++++ .../validation/bunit-2.7.2/Theme/audit.txt | 7 + .../validation/bunit-2.7.2/Theme/before.log | 10 + .../bunit-2.7.2/Theme/before/before.trx | 448 ++++++++++++++++++ .../bunit-2.7.2/Theme/resolved-graph.json | 8 + .../bunit-2.7.2/Theme/runtime-integrity.json | 8 + .../bunit-2.7.2/Theme/test-comparison.json | 40 ++ .../probes/1.5.0/BunitCompatibility.csproj | 17 + .../probes/1.5.0/BunitCompatibilityTests.cs | 31 ++ .../bunit-2.7.2/probes/1.5.0/probe.log | 6 + .../bunit-2.7.2/probes/1.5.0/probe.trx | 34 ++ .../probes/1.5.2/AsyncLifecycleTests.cs | 25 + .../probes/1.5.2/BunitCompatibility.csproj | 17 + .../probes/1.5.2/BunitCompatibilityTests.cs | 31 ++ .../probes/1.5.2/isolated-restore.log | 2 + .../bunit-2.7.2/probes/1.5.2/probe-final.log | 6 + .../bunit-2.7.2/probes/1.5.2/probe-final.trx | 40 ++ .../bunit-2.7.2/probes/1.5.2/probe.log | 8 + .../bunit-2.7.2/probes/1.5.2/probe.trx | 34 ++ 23 files changed, 1298 insertions(+), 2 deletions(-) create mode 100644 components/ui-theme/validation/bunit-2.7.2/Theme/README.md create mode 100644 components/ui-theme/validation/bunit-2.7.2/Theme/after-packages.txt create mode 100644 components/ui-theme/validation/bunit-2.7.2/Theme/after.log create mode 100644 components/ui-theme/validation/bunit-2.7.2/Theme/after/after.trx create mode 100644 components/ui-theme/validation/bunit-2.7.2/Theme/audit.txt create mode 100644 components/ui-theme/validation/bunit-2.7.2/Theme/before.log create mode 100644 components/ui-theme/validation/bunit-2.7.2/Theme/before/before.trx create mode 100644 components/ui-theme/validation/bunit-2.7.2/Theme/resolved-graph.json create mode 100644 components/ui-theme/validation/bunit-2.7.2/Theme/runtime-integrity.json create mode 100644 components/ui-theme/validation/bunit-2.7.2/Theme/test-comparison.json create mode 100644 components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/BunitCompatibility.csproj create mode 100644 components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/BunitCompatibilityTests.cs create mode 100644 components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/probe.log create mode 100644 components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/probe.trx create mode 100644 components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/AsyncLifecycleTests.cs create mode 100644 components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/BunitCompatibility.csproj create mode 100644 components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/BunitCompatibilityTests.cs create mode 100644 components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/isolated-restore.log create mode 100644 components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe-final.log create mode 100644 components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe-final.trx create mode 100644 components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe.log create mode 100644 components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe.trx diff --git a/ZB.MOM.WW.Theme/Directory.Packages.props b/ZB.MOM.WW.Theme/Directory.Packages.props index 2abd96f..27d4013 100644 --- a/ZB.MOM.WW.Theme/Directory.Packages.props +++ b/ZB.MOM.WW.Theme/Directory.Packages.props @@ -4,8 +4,8 @@ - - + + diff --git a/components/ui-theme/validation/bunit-2.7.2/Theme/README.md b/components/ui-theme/validation/bunit-2.7.2/Theme/README.md new file mode 100644 index 0000000..46785ce --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/Theme/README.md @@ -0,0 +1,8 @@ +# Theme bUnit verification + +Before: 70 passed, 0 failed/skipped with bUnit 2.7.2 / AngleSharp 1.5.0. +After: 70 passed, 0 failed/skipped with bUnit 2.7.2 / AngleSharp 1.5.2. + +TRX comparison confirms identical test identities/outcomes. Actual runtime AngleSharp.dll SHA256 matches the resolved 1.5.2 package file. NuGet transitive vulnerability scan reports no vulnerable packages. Production graph has no test-package leakage. + +Change scope: test-only parser pin; no Theme components, CSS, public API or production version changed. diff --git a/components/ui-theme/validation/bunit-2.7.2/Theme/after-packages.txt b/components/ui-theme/validation/bunit-2.7.2/Theme/after-packages.txt new file mode 100644 index 0000000..6d3b0ce --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/Theme/after-packages.txt @@ -0,0 +1,58 @@ + Determining projects to restore... + All projects are up-to-date for restore. +Project 'ZB.MOM.WW.Theme.Tests' has the following package references + [net10.0]: + Top-level Package Requested Resolved + > AngleSharp 1.5.2 1.5.2 + > bunit 2.7.2 2.7.2 + > coverlet.collector 6.0.4 6.0.4 + > Microsoft.NET.Test.Sdk 17.14.1 17.14.1 + > xunit 2.9.3 2.9.3 + > xunit.runner.visualstudio 3.1.4 3.1.4 + + Transitive Package Resolved + > AngleSharp.Css 1.0.0-beta.157 + > AngleSharp.Diffing 1.1.1 + > Microsoft.AspNetCore.Authorization 10.0.0 + > Microsoft.AspNetCore.Components 10.0.0 + > Microsoft.AspNetCore.Components.Analyzers 10.0.0 + > Microsoft.AspNetCore.Components.Authorization 10.0.0 + > Microsoft.AspNetCore.Components.Forms 10.0.0 + > Microsoft.AspNetCore.Components.Web 10.0.0 + > Microsoft.AspNetCore.Components.WebAssembly 10.0.0 + > Microsoft.AspNetCore.Components.WebAssembly.Authentication 10.0.0 + > Microsoft.AspNetCore.Metadata 10.0.0 + > Microsoft.CodeCoverage 17.14.1 + > Microsoft.Extensions.Caching.Abstractions 10.0.0 + > Microsoft.Extensions.Caching.Memory 10.0.0 + > Microsoft.Extensions.Configuration 10.0.0 + > Microsoft.Extensions.Configuration.Abstractions 10.0.0 + > Microsoft.Extensions.Configuration.Binder 10.0.0 + > Microsoft.Extensions.Configuration.FileExtensions 10.0.0 + > Microsoft.Extensions.Configuration.Json 10.0.0 + > Microsoft.Extensions.DependencyInjection 10.0.0 + > Microsoft.Extensions.DependencyInjection.Abstractions 10.0.0 + > Microsoft.Extensions.Diagnostics 10.0.0 + > Microsoft.Extensions.Diagnostics.Abstractions 10.0.0 + > Microsoft.Extensions.FileProviders.Abstractions 10.0.0 + > Microsoft.Extensions.FileProviders.Physical 10.0.0 + > Microsoft.Extensions.FileSystemGlobbing 10.0.0 + > Microsoft.Extensions.Localization.Abstractions 10.0.0 + > Microsoft.Extensions.Logging 10.0.0 + > Microsoft.Extensions.Logging.Abstractions 10.0.0 + > Microsoft.Extensions.Options 10.0.0 + > Microsoft.Extensions.Options.ConfigurationExtensions 10.0.0 + > Microsoft.Extensions.Primitives 10.0.0 + > Microsoft.Extensions.Validation 10.0.0 + > Microsoft.JSInterop 10.0.0 + > Microsoft.JSInterop.WebAssembly 10.0.0 + > Microsoft.TestPlatform.ObjectModel 17.14.1 + > Microsoft.TestPlatform.TestHost 17.14.1 + > Newtonsoft.Json 13.0.3 + > xunit.abstractions 2.0.3 + > xunit.analyzers 1.18.0 + > xunit.assert 2.9.3 + > xunit.core 2.9.3 + > xunit.extensibility.core 2.9.3 + > xunit.extensibility.execution 2.9.3 + diff --git a/components/ui-theme/validation/bunit-2.7.2/Theme/after.log b/components/ui-theme/validation/bunit-2.7.2/Theme/after.log new file mode 100644 index 0000000..b5175de --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/Theme/after.log @@ -0,0 +1,10 @@ + Determining projects to restore... + Restored /Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/ZB.MOM.WW.Theme.csproj (in 37 ms). + Restored /Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/ZB.MOM.WW.Theme/tests/ZB.MOM.WW.Theme.Tests/ZB.MOM.WW.Theme.Tests.csproj (in 120 ms). + ZB.MOM.WW.Theme -> /Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/bin/Release/net10.0/ZB.MOM.WW.Theme.dll + ZB.MOM.WW.Theme.Tests -> /Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/ZB.MOM.WW.Theme/tests/ZB.MOM.WW.Theme.Tests/bin/Release/net10.0/ZB.MOM.WW.Theme.Tests.dll +Test run for /Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/ZB.MOM.WW.Theme/tests/ZB.MOM.WW.Theme.Tests/bin/Release/net10.0/ZB.MOM.WW.Theme.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +Results File: /Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/components/ui-theme/validation/bunit-2.7.2/Theme/after/after.trx + +Passed! - Failed: 0, Passed: 70, Skipped: 0, Total: 70, Duration: 201 ms - ZB.MOM.WW.Theme.Tests.dll (net10.0) diff --git a/components/ui-theme/validation/bunit-2.7.2/Theme/after/after.trx b/components/ui-theme/validation/bunit-2.7.2/Theme/after/after.trx new file mode 100644 index 0000000..238f468 --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/Theme/after/after.trx @@ -0,0 +1,448 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.4+50e68bbb8b (64-bit .NET 10.0.14) +[xUnit.net 00:00:00.03] Discovering: ZB.MOM.WW.Theme.Tests +[xUnit.net 00:00:00.06] Discovered: ZB.MOM.WW.Theme.Tests +[xUnit.net 00:00:00.07] Starting: ZB.MOM.WW.Theme.Tests +[xUnit.net 00:00:00.29] Finished: ZB.MOM.WW.Theme.Tests + + + + \ No newline at end of file diff --git a/components/ui-theme/validation/bunit-2.7.2/Theme/audit.txt b/components/ui-theme/validation/bunit-2.7.2/Theme/audit.txt new file mode 100644 index 0000000..991c605 --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/Theme/audit.txt @@ -0,0 +1,7 @@ + Determining projects to restore... + All projects are up-to-date for restore. + +The following sources were used: + https://api.nuget.org/v3/index.json + +The given project `ZB.MOM.WW.Theme.Tests` has no vulnerable packages given the current sources. diff --git a/components/ui-theme/validation/bunit-2.7.2/Theme/before.log b/components/ui-theme/validation/bunit-2.7.2/Theme/before.log new file mode 100644 index 0000000..0f8c502 --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/Theme/before.log @@ -0,0 +1,10 @@ + Determining projects to restore... + Restored /Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/ZB.MOM.WW.Theme.csproj (in 31 ms). + Restored /Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/ZB.MOM.WW.Theme/tests/ZB.MOM.WW.Theme.Tests/ZB.MOM.WW.Theme.Tests.csproj (in 437 ms). + ZB.MOM.WW.Theme -> /Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/bin/Release/net10.0/ZB.MOM.WW.Theme.dll + ZB.MOM.WW.Theme.Tests -> /Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/ZB.MOM.WW.Theme/tests/ZB.MOM.WW.Theme.Tests/bin/Release/net10.0/ZB.MOM.WW.Theme.Tests.dll +Test run for /Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/ZB.MOM.WW.Theme/tests/ZB.MOM.WW.Theme.Tests/bin/Release/net10.0/ZB.MOM.WW.Theme.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +Results File: /Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/components/ui-theme/validation/bunit-2.7.2/Theme/before/before.trx + +Passed! - Failed: 0, Passed: 70, Skipped: 0, Total: 70, Duration: 231 ms - ZB.MOM.WW.Theme.Tests.dll (net10.0) diff --git a/components/ui-theme/validation/bunit-2.7.2/Theme/before/before.trx b/components/ui-theme/validation/bunit-2.7.2/Theme/before/before.trx new file mode 100644 index 0000000..150dd1d --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/Theme/before/before.trx @@ -0,0 +1,448 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.4+50e68bbb8b (64-bit .NET 10.0.14) +[xUnit.net 00:00:00.04] Discovering: ZB.MOM.WW.Theme.Tests +[xUnit.net 00:00:00.06] Discovered: ZB.MOM.WW.Theme.Tests +[xUnit.net 00:00:00.07] Starting: ZB.MOM.WW.Theme.Tests +[xUnit.net 00:00:00.32] Finished: ZB.MOM.WW.Theme.Tests + + + + \ No newline at end of file diff --git a/components/ui-theme/validation/bunit-2.7.2/Theme/resolved-graph.json b/components/ui-theme/validation/bunit-2.7.2/Theme/resolved-graph.json new file mode 100644 index 0000000..226cd45 --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/Theme/resolved-graph.json @@ -0,0 +1,8 @@ +{ + "AngleSharp/1.5.2": "package", + "AngleSharp.Css/1.0.0-beta.157": "package", + "AngleSharp.Diffing/1.1.1": "package", + "bunit/2.7.2": "package", + "Microsoft.NET.Test.Sdk/17.14.1": "package", + "xunit/2.9.3": "package" +} diff --git a/components/ui-theme/validation/bunit-2.7.2/Theme/runtime-integrity.json b/components/ui-theme/validation/bunit-2.7.2/Theme/runtime-integrity.json new file mode 100644 index 0000000..b1b6605 --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/Theme/runtime-integrity.json @@ -0,0 +1,8 @@ +{ + "runtimeHashMatchesResolvedPackage": true, + "hashes": { + "/Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/ZB.MOM.WW.Theme/tests/ZB.MOM.WW.Theme.Tests/bin/Release/net10.0/AngleSharp.dll": "68cca44669f8633d93f3bdfe8276ab1fe2a904a0c6a966e59e43841aaa66cb14", + "/Users/dohertj2/.nuget/packages/anglesharp/1.5.2/lib/net10.0/AngleSharp.dll": "68cca44669f8633d93f3bdfe8276ab1fe2a904a0c6a966e59e43841aaa66cb14" + }, + "productionTestPackageLeaks": [] +} diff --git a/components/ui-theme/validation/bunit-2.7.2/Theme/test-comparison.json b/components/ui-theme/validation/bunit-2.7.2/Theme/test-comparison.json new file mode 100644 index 0000000..e6a6ccb --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/Theme/test-comparison.json @@ -0,0 +1,40 @@ +{ + "before": { + "total": "70", + "executed": "70", + "passed": "70", + "failed": "0", + "error": "0", + "timeout": "0", + "aborted": "0", + "inconclusive": "0", + "passedButRunAborted": "0", + "notRunnable": "0", + "notExecuted": "0", + "disconnected": "0", + "warning": "0", + "completed": "0", + "inProgress": "0", + "pending": "0" + }, + "after": { + "total": "70", + "executed": "70", + "passed": "70", + "failed": "0", + "error": "0", + "timeout": "0", + "aborted": "0", + "inconclusive": "0", + "passedButRunAborted": "0", + "notRunnable": "0", + "notExecuted": "0", + "disconnected": "0", + "warning": "0", + "completed": "0", + "inProgress": "0", + "pending": "0" + }, + "sameTestIdentities": true, + "sameOutcomes": true +} diff --git a/components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/BunitCompatibility.csproj b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/BunitCompatibility.csproj new file mode 100644 index 0000000..71df3ae --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/BunitCompatibility.csproj @@ -0,0 +1,17 @@ + + + net10.0 + true + false + enable + enable + + + + + + + + + + diff --git a/components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/BunitCompatibilityTests.cs b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/BunitCompatibilityTests.cs new file mode 100644 index 0000000..bbcd87c --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/BunitCompatibilityTests.cs @@ -0,0 +1,31 @@ +using Bunit; +using Microsoft.AspNetCore.Components; +using Microsoft.AspNetCore.Components.Rendering; +using Xunit; + +public sealed class BunitCompatibilityTests : BunitContext +{ + [Fact] + public void Render_query_click_rerender_and_authorization_are_available() + { + var auth = this.AddAuthorization(); + auth.SetAuthorized("synthetic-user"); + auth.SetRoles("Viewer"); + var cut = Render(); + Assert.Equal("Count 0", cut.Find("button").TextContent); + cut.Find("button").Click(); + Assert.Equal("Count 1", cut.Find("button").TextContent); + Assert.Single(cut.FindAll("button")); + } + public sealed class Probe : ComponentBase + { + private int count; + protected override void BuildRenderTree(RenderTreeBuilder b) + { + b.OpenElement(0, "button"); + b.AddAttribute(1, "onclick", EventCallback.Factory.Create(this, () => count++)); + b.AddContent(2, $"Count {count}"); + b.CloseElement(); + } + } +} diff --git a/components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/probe.log b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/probe.log new file mode 100644 index 0000000..da2fd13 --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/probe.log @@ -0,0 +1,6 @@ + BunitCompatibility -> /tmp/scada-bunit-compat/1.5.0/bin/Release/net10.0/BunitCompatibility.dll +Test run for /tmp/scada-bunit-compat/1.5.0/bin/Release/net10.0/BunitCompatibility.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +Results File: /tmp/scada-bunit-compat/1.5.0/results/probe.trx + +Passed! - Failed: 0, Passed: 1, Skipped: 0, Total: 1, Duration: 157 ms - BunitCompatibility.dll (net10.0) diff --git a/components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/probe.trx b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/probe.trx new file mode 100644 index 0000000..6cd3444 --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.0/probe.trx @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.4+50e68bbb8b (64-bit .NET 10.0.14) +[xUnit.net 00:00:00.03] Discovering: BunitCompatibility +[xUnit.net 00:00:00.05] Discovered: BunitCompatibility +[xUnit.net 00:00:00.05] Starting: BunitCompatibility +[xUnit.net 00:00:00.23] Finished: BunitCompatibility + + + + \ No newline at end of file diff --git a/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/AsyncLifecycleTests.cs b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/AsyncLifecycleTests.cs new file mode 100644 index 0000000..fd7e093 --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/AsyncLifecycleTests.cs @@ -0,0 +1,25 @@ +using Bunit; +using Microsoft.Extensions.DependencyInjection; +using Xunit; +public sealed class AsyncLifecycleTests +{ + [Fact] + public async Task Context_awaits_async_service_disposal() + { + var context = new BunitContext(); + context.Services.AddScoped(); + var resource = context.Services.GetRequiredService(); + Assert.False(resource.Disposed); + await context.DisposeAsync(); + Assert.True(resource.Disposed); + } + public sealed class AsyncResource : IAsyncDisposable + { + public bool Disposed { get; private set; } + public async ValueTask DisposeAsync() + { + await Task.Yield(); + Disposed = true; + } + } +} diff --git a/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/BunitCompatibility.csproj b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/BunitCompatibility.csproj new file mode 100644 index 0000000..9b5f0cc --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/BunitCompatibility.csproj @@ -0,0 +1,17 @@ + + + net10.0 + true + false + enable + enable + + + + + + + + + + diff --git a/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/BunitCompatibilityTests.cs b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/BunitCompatibilityTests.cs new file mode 100644 index 0000000..bbcd87c --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/BunitCompatibilityTests.cs @@ -0,0 +1,31 @@ +using Bunit; +using Microsoft.AspNetCore.Components; +using Microsoft.AspNetCore.Components.Rendering; +using Xunit; + +public sealed class BunitCompatibilityTests : BunitContext +{ + [Fact] + public void Render_query_click_rerender_and_authorization_are_available() + { + var auth = this.AddAuthorization(); + auth.SetAuthorized("synthetic-user"); + auth.SetRoles("Viewer"); + var cut = Render(); + Assert.Equal("Count 0", cut.Find("button").TextContent); + cut.Find("button").Click(); + Assert.Equal("Count 1", cut.Find("button").TextContent); + Assert.Single(cut.FindAll("button")); + } + public sealed class Probe : ComponentBase + { + private int count; + protected override void BuildRenderTree(RenderTreeBuilder b) + { + b.OpenElement(0, "button"); + b.AddAttribute(1, "onclick", EventCallback.Factory.Create(this, () => count++)); + b.AddContent(2, $"Count {count}"); + b.CloseElement(); + } + } +} diff --git a/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/isolated-restore.log b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/isolated-restore.log new file mode 100644 index 0000000..b6e3179 --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/isolated-restore.log @@ -0,0 +1,2 @@ + Determining projects to restore... + Restored /tmp/scada-bunit-compat/1.5.2/BunitCompatibility.csproj (in 669 ms). diff --git a/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe-final.log b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe-final.log new file mode 100644 index 0000000..69d756d --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe-final.log @@ -0,0 +1,6 @@ + BunitCompatibility -> /tmp/scada-bunit-compat/1.5.2/bin/Release/net10.0/BunitCompatibility.dll +Test run for /tmp/scada-bunit-compat/1.5.2/bin/Release/net10.0/BunitCompatibility.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +Results File: /tmp/scada-bunit-compat/1.5.2/results/probe-final.trx + +Passed! - Failed: 0, Passed: 2, Skipped: 0, Total: 2, Duration: 158 ms - BunitCompatibility.dll (net10.0) diff --git a/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe-final.trx b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe-final.trx new file mode 100644 index 0000000..193e91a --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe-final.trx @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.4+50e68bbb8b (64-bit .NET 10.0.14) +[xUnit.net 00:00:00.03] Discovering: BunitCompatibility +[xUnit.net 00:00:00.05] Discovered: BunitCompatibility +[xUnit.net 00:00:00.06] Starting: BunitCompatibility +[xUnit.net 00:00:00.23] Finished: BunitCompatibility + + + + \ No newline at end of file diff --git a/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe.log b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe.log new file mode 100644 index 0000000..6468373 --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe.log @@ -0,0 +1,8 @@ + Determining projects to restore... + Restored /tmp/scada-bunit-compat/1.5.2/BunitCompatibility.csproj (in 101 ms). + BunitCompatibility -> /tmp/scada-bunit-compat/1.5.2/bin/Release/net10.0/BunitCompatibility.dll +Test run for /tmp/scada-bunit-compat/1.5.2/bin/Release/net10.0/BunitCompatibility.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +Results File: /tmp/scada-bunit-compat/1.5.2/results/probe.trx + +Passed! - Failed: 0, Passed: 1, Skipped: 0, Total: 1, Duration: 166 ms - BunitCompatibility.dll (net10.0) diff --git a/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe.trx b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe.trx new file mode 100644 index 0000000..9fda682 --- /dev/null +++ b/components/ui-theme/validation/bunit-2.7.2/probes/1.5.2/probe.trx @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.4+50e68bbb8b (64-bit .NET 10.0.14) +[xUnit.net 00:00:00.03] Discovering: BunitCompatibility +[xUnit.net 00:00:00.05] Discovered: BunitCompatibility +[xUnit.net 00:00:00.06] Starting: BunitCompatibility +[xUnit.net 00:00:00.24] Finished: BunitCompatibility + + + + \ No newline at end of file