Skip to content

Commit f7771ad

Browse files
committed
Update bUnit to preview for .net8.0 release
1 parent f94a93d commit f7771ad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33

44
<ItemGroup Condition="$(MSBuildProjectName) != 'LinkDotNet.Blog.TestUtilities'">
5-
<PackageReference Include="bunit" Version="1.21.9" />
5+
<PackageReference Include="bunit" Version="1.23.1-preview" />
66
<PackageReference Include="FluentAssertions" Version="6.11.0" />
77
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
88
<PackageReference Include="Moq" Version="4.18.4" />

tests/LinkDotNet.Blog.IntegrationTests/Web/Features/ShowBlogPost/ShowBlogPostPageTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using LinkDotNet.Blog.Web.Features.Services;
88
using LinkDotNet.Blog.Web.Features.ShowBlogPost;
99
using LinkDotNet.Blog.Web.Features.ShowBlogPost.Components;
10+
using Microsoft.AspNetCore.Components.Web;
1011
using Microsoft.EntityFrameworkCore;
1112
using Microsoft.Extensions.DependencyInjection;
1213

@@ -88,6 +89,7 @@ public async Task ShouldSetStructuredData()
8889
ctx.JSInterop.Mode = JSRuntimeMode.Loose;
8990
ctx.AddTestAuthorization();
9091
RegisterComponents(ctx);
92+
ctx.ComponentFactories.AddStub<HeadContent>(ps => ps.Get(p => p.ChildContent));
9193
var cut = ctx.RenderComponent<ShowBlogPostPage>(
9294
p => p.Add(b => b.BlogPostId, post.Id));
9395

0 commit comments

Comments
 (0)