File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ namespace Bunit ;
2+
3+ public partial class BunitContext
4+ {
5+ /// <summary>
6+ /// Use <see cref="Render{TComponent}(System.Action{Bunit.ComponentParameterCollectionBuilder{TComponent}}?)"/> instead.
7+ /// </summary>
8+ [ Obsolete ( $ "Use { nameof ( Render ) } instead.", true , UrlFormat = "https://bunit.dev/docs/migration" ) ]
9+ public RenderedComponent < TComponent > RenderComponent < TComponent > ( )
10+ where TComponent : IComponent
11+ {
12+ throw new NotSupportedException ( $ "Use { nameof ( Render ) } <{ typeof ( TComponent ) . Name } > instead.") ;
13+ }
14+
15+ /// <summary>
16+ /// Use <see cref="Render{TComponent}(System.Action{Bunit.ComponentParameterCollectionBuilder{TComponent}}?)"/> instead.
17+ /// </summary>
18+ [ Obsolete ( $ "Use { nameof ( Render ) } instead.", true , UrlFormat = "https://bunit.dev/docs/migration" ) ]
19+ public RenderedComponent < TComponent > RenderComponent < TComponent > ( Action < ComponentParameterCollectionBuilder < TComponent > > ? parameterBuilder )
20+ where TComponent : IComponent
21+ {
22+ throw new NotSupportedException ( $ "Use { nameof ( Render ) } <{ typeof ( TComponent ) . Name } > instead.") ;
23+ }
24+ }
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
33 <TargetFrameworks >net8.0;net9.0</TargetFrameworks >
4+ <RootNamespace >Bunit</RootNamespace >
45 </PropertyGroup >
56
67 <PropertyGroup >
You can’t perform that action at this time.
0 commit comments