Skip to content

Commit 52bb792

Browse files
committed
link Log4NetAssert into the test project #314
Tests had no access to IsFatal or the EnsureNotNull family and hand-rolled the checks instead. Linking it needs NotNullAttribute and ValidatedNotNullAttribute too, or the compiler reports CS0122.
1 parent 9feffa6 commit 52bb792

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/log4net.Tests/log4net.Tests.csproj‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<Compile Include="..\log4net\Util\CallerAssembly.cs" Link="Util\CallerAssembly.cs" />
2323
<Compile Include="..\log4net\Diagnostics\CodeAnalysis\CallerArgumentExpressionAttribute.cs" Link="Diagnostics\CodeAnalysis\CallerArgumentExpressionAttribute.cs" />
2424
<Compile Include="..\log4net\Diagnostics\CodeAnalysis\IsExternalInit.cs" Link="Diagnostics\CodeAnalysis\IsExternalInit.cs" />
25+
<Compile Include="..\log4net\Diagnostics\CodeAnalysis\NotNullAttribute.cs" Link="Diagnostics\CodeAnalysis\NotNullAttribute.cs" />
26+
<Compile Include="..\log4net\Diagnostics\CodeAnalysis\ValidatedNotNullAttribute.cs" Link="Diagnostics\CodeAnalysis\ValidatedNotNullAttribute.cs" />
27+
<Compile Include="..\log4net\Util\Log4NetAssert.cs" Link="Util\Log4NetAssert.cs" />
2528
</ItemGroup>
2629
<ItemGroup>
2730
<ProjectReference Include="..\log4net\log4net.csproj" />

0 commit comments

Comments
 (0)