Make internals visible to Moq, otherwise we cannot mock ILogger<InternalClass>

For some reason adding the assembly attribute doesn't work for the test project, I need to look into this.
This commit is contained in:
Mole
2020-09-22 08:56:23 +02:00
parent 4917025327
commit 6cce7ef3f2
4 changed files with 11 additions and 0 deletions

View File

@@ -27,6 +27,9 @@
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>Umbraco.Tests.Benchmarks</_Parameter1>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>DynamicProxyGenAssembly2</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>