Skip to content

Commit

Permalink
Change Wrapper class Namespace to the namespace to file that trigge…
Browse files Browse the repository at this point in the history
…r the generator
  • Loading branch information
YarinOmesi committed Aug 5, 2023
1 parent 3c44706 commit 3090c97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ IType testedClassType
var wrapperFile = FileBuilder.Create($"Wrapper.{mockDependencyBehavior.Type.Name}.generated.cs");
fileBuilders.Add(wrapperFile);

wrapperFile.Namespace = "TestsHelper.SourceGenerator.MockWrapping";
wrapperFile.Namespace = containingNamespace;

TypeBuilder dependencyWrapperType = wrapperFile.AddClass();
dependencyWrapperGenerator.GenerateCode(dependencyWrapperType, mockDependencyBehavior.Type);
Expand Down

0 comments on commit 3090c97

Please sign in to comment.