diff --git a/.github/workflows/GithubActionsRelease.yml b/.github/workflows/GithubActionsRelease.yml index 750f86b54..f0a7c6df0 100644 --- a/.github/workflows/GithubActionsRelease.yml +++ b/.github/workflows/GithubActionsRelease.yml @@ -53,7 +53,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9.12.2 + version: 11.12.0 - name: Run the acceptance tests as the first build action and cancel out the rest if it fails run: dotnet test ${{env.projectTest}} --configuration ${{env.buildConfiguration}} @@ -79,7 +79,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9.12.2 + version: 11.12.0 - name: Build Material.Blazor run: dotnet build ${{env.projectMB}} --configuration ${{env.buildConfiguration}} @@ -119,7 +119,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9.12.2 + version: 11.12.0 - name: Build and Publish Website 🔧 run: > @@ -157,7 +157,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9.12.2 + version: 11.12.0 - name: Download Artifacts 🔻 # The documentation is downloaded into the 'siteDocFx' folder. uses: actions/download-artifact@v4 @@ -212,7 +212,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9.12.2 + version: 11.12.0 - name: Build Material.Blazor & Generate the NuGet package 🔧 run: > diff --git a/.github/workflows/GithubActionsWIP.yml b/.github/workflows/GithubActionsWIP.yml index 80c2bb6c7..208eff24d 100644 --- a/.github/workflows/GithubActionsWIP.yml +++ b/.github/workflows/GithubActionsWIP.yml @@ -84,7 +84,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9.12.2 + version: 11.12.0 - name: Run the acceptance tests as the first build action and cancel out the rest if it fails run: dotnet test ${{env.projectTest}} --configuration ${{env.buildConfiguration}} @@ -112,7 +112,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9.12.2 + version: 11.12.0 - name: Build Material.Blazor run: dotnet build ${{env.projectMB}} --configuration ${{env.buildConfiguration}} @@ -159,7 +159,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9.12.2 + version: 11.12.0 - name: Build & Publish Website 🔧 run: > @@ -223,7 +223,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9.12.2 + version: 11.12.0 - name: Build Material.Blazor & Generate the NuGet package 🔧 run: > @@ -407,7 +407,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9.12.2 + version: 11.12.0 - name: Build Material.Blazor & Generate the NuGet package 🔧 run: > diff --git a/Material.Blazor.Test/Material.Blazor.Test.csproj b/Material.Blazor.Test/Material.Blazor.Test.csproj index d9f296e8a..de55e12af 100644 --- a/Material.Blazor.Test/Material.Blazor.Test.csproj +++ b/Material.Blazor.Test/Material.Blazor.Test.csproj @@ -4,17 +4,15 @@ - - - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/Material.Blazor.Test/Mocking.cs b/Material.Blazor.Test/Mocking.cs index d29f8096b..6a06d81bd 100644 --- a/Material.Blazor.Test/Mocking.cs +++ b/Material.Blazor.Test/Mocking.cs @@ -12,7 +12,7 @@ namespace Material.Blazor.Test; public class Mocking { - private TestContext ctx; + private BunitContext ctx; private void InjectMockedServices() { _ = new BunitJSInterop @@ -42,7 +42,7 @@ private void InjectMockedServices() public void TryRenderMBAnchor() { InjectMockedServices(); - var cut = ctx.RenderComponent(); + var cut = ctx.Render(); cut.MarkupMatches(""); } @@ -51,13 +51,12 @@ public void TryRenderMBAutocompleteTextField() { InjectMockedServices(); string[] fruits = { "Avocado", "Banana", "Blackberry" }; - var cut = ctx.RenderComponent - ((nameof(MBAutocompleteTextField.AllowBlankResult), false), - (nameof(MBAutocompleteTextField.Label), "Hello button"), - (nameof(MBAutocompleteTextField.LeadingIcon), "alarm"), - (nameof(MBAutocompleteTextField.SelectItems), @fruits), - (nameof(MBAutocompleteTextField.TextInputStyle), MBTextInputStyle.Filled) - ); + var cut = ctx.Render(parameters => parameters + .Add(p => p.AllowBlankResult, false) + .Add(p => p.Label, "Hello button") + .Add(p => p.LeadingIcon, "alarm") + .Add(p => p.SelectItems, fruits) + .Add(p => p.TextInputStyle, MBTextInputStyle.Filled)); cut.MarkupMatches(@"