Skip to content

Commit

Permalink
bugfix: Add mock creation parameter for nonPublic.
Browse files Browse the repository at this point in the history
  • Loading branch information
cwinland committed Dec 13, 2023
1 parent 0482152 commit 9ad8a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FastMoq.Core/Mocker.CreateInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public Mock CreateMockInstance(Type type, bool nonPublic = false, params object?
}
}

var oMock = CreateMockInternal(type, constructor);
var oMock = CreateMockInternal(type, constructor, nonPublic);

if (!Strict)
{
Expand Down

0 comments on commit 9ad8a41

Please sign in to comment.