Skip to content

Commit

Permalink
Make Tests see the internals of the lib, even in release.
Browse files Browse the repository at this point in the history
  • Loading branch information
JKamsker committed Jun 11, 2024
1 parent fad6af3 commit 9bcebd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions LiteDB.Tests/LiteDB.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<NeutralLanguage>en-US</NeutralLanguage>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<NoWarn>1701;1702;1705;1591;0618</NoWarn>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\LiteDB\LiteDB.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions LiteDB/Utils/Constants.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using LiteDB.Engine;

using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Threading;

[assembly: InternalsVisibleTo("LiteDB.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010029e66990e22110ce40a7197e37f8f82df3332c399e696df7f27d09e14ee590ac2dda735d4777fe554c427540bde93b14d3d26c04731c963383dcaa18859c8cbcd4a1a9c394d1204f474c2ab6f23a2eaadf81eb8a7a3d3cc73658868b0302163b92a2614ca050ab703be33c3e1d76f55b11f4f87cb73558f3aa69c1ce726d9ee8")]
#if DEBUG
[assembly: InternalsVisibleTo("LiteDB.Tests")]
[assembly: InternalsVisibleTo("ConsoleApp1")]
#endif

Expand Down Expand Up @@ -197,4 +198,4 @@ public static void DEBUG(bool conditional, string message = null)
}
}
}
}
}

0 comments on commit 9bcebd7

Please sign in to comment.