Skip to content

Commit 76b6225

Browse files
linkdotnetegil
authored andcommitted
refactor
1 parent efb09e6 commit 76b6225

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/bunit.generators/Web.Stubs/StubGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private static bool GenerateStubComponent(StubClassInfo classInfo, SourceProduct
162162

163163
return hasSomethingToStub;
164164

165-
string GetAttributeLine(IPropertySymbol member)
165+
string GetAttributeLine(ISymbol member)
166166
{
167167
var attribute = member.GetAttributes().First(attr =>
168168
attr.AttributeClass?.ToDisplayString() == "Microsoft.AspNetCore.Components.ParameterAttribute" ||

tests/bunit.generators.tests/Web.Stub/StubTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System.Reflection;
22
using Bunit.Web.Stub.Components;
33
using Microsoft.AspNetCore.Components;
4-
using Microsoft.Extensions.DependencyInjection;
54

65
namespace Bunit.Web.Stub;
76

0 commit comments

Comments
 (0)