Skip to content

Commit c69e458

Browse files
linkdotnetegil
authored andcommitted
Don't use double stub
1 parent e57eec1 commit c69e458

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

139139
if (hasSomethingToStub)
140140
{
141-
context.AddSource($"{classInfo.StubClassName}Stub.g.cs", sourceBuilder.ToString());
141+
context.AddSource($"{classInfo.StubClassName}.g.cs", sourceBuilder.ToString());
142142
}
143143

144144
return hasSomethingToStub;

0 commit comments

Comments
 (0)