Skip to content

Commit f02dab6

Browse files
committed
2 parents 1fb7778 + fa8d57c commit f02dab6

File tree

6 files changed

+28
-3
lines changed

6 files changed

+28
-3
lines changed

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"sdk": {
33
"version": "8.0.400",
44
"rollForward": "latestMajor",
5-
"allowPrerelease": true
5+
"allowPrerelease": false
66
},
77
"msbuild-sdks": {
88
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This file is used by Code Analysis to maintain SuppressMessage
2+
// attributes that are applied to this project.
3+
// Project-level suppressions either have no target or are given
4+
// a specific target and scoped to a namespace, type, member, etc.
5+
6+
using System.Diagnostics.CodeAnalysis;
7+
8+
[assembly: SuppressMessage("Style", "IDE0130:Namespace does not match folder structure",
9+
Justification = "Extensions", Scope = "namespace", Target = "~N:C3D.Extensions.Xunit.Logging")]
10+
[assembly: SuppressMessage("Style", "IDE0130:Namespace does not match folder structure",
11+
Justification = "Extensions", Scope = "namespace", Target = "~N:Xunit.Abstractions")]
12+
[assembly: SuppressMessage("Style", "IDE0130:Namespace does not match folder structure",
13+
Justification = "Extensions", Scope = "namespace", Target = "~N:Microsoft.Extensions.Logging")]
14+
[assembly: SuppressMessage("Style", "IDE0130:Namespace does not match folder structure",
15+
Justification = "Pending fs reorg", Scope = "namespace", Target = "~N:C3D.Extensions.Logging.Xunit.Utilities")]

test/C3D/Extensions/Logging/Xunit/Test/C3D.Extensions.Logging.Xunit.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<IsTestProject>true</IsTestProject>
99

1010
<PUTDirectory>$(SolutionDir)\src\C3D\Extensions\Logging\Xunit\</PUTDirectory>
11+
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
1112
</PropertyGroup>
1213

1314
<ItemGroup>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This file is used by Code Analysis to maintain SuppressMessage
2+
// attributes that are applied to this project.
3+
// Project-level suppressions either have no target or are given
4+
// a specific target and scoped to a namespace, type, member, etc.
5+
6+
using System.Diagnostics.CodeAnalysis;
7+
8+
[assembly: SuppressMessage("Style", "IDE0130:Namespace does not match folder structure",
9+
Justification = "Assembly name needs to end in .Tests", Scope = "namespace", Target = "~N:C3D.Extensions.Logging.Xunit.Test")]

test/C3D/Extensions/Logging/Xunit/Test/LoggingTestFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private static IConfiguration CreateConfiguration()
2323

2424
}
2525

26-
private ILoggingBuilder ConfigureLogger(ILoggingBuilder builder, IConfiguration configuration) => builder
26+
private static ILoggingBuilder ConfigureLogger(ILoggingBuilder builder, IConfiguration configuration) => builder
2727
.ClearProviders()
2828
.SetMinimumLevel(LogLevel.Debug)
2929
.AddConfiguration(configuration.GetSection("Logging"))

test/C3D/Extensions/Logging/Xunit/Test/TestOutputHelperTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public void CreateLoggerFiltersMessages()
138138

139139
var messages = wrapper.Messages;
140140

141-
Assert.Collection(messages, s => s.EndsWith(info));
141+
Assert.Single(messages, s => s.EndsWith(info));
142142
}
143143

144144
[Fact]

0 commit comments

Comments
 (0)