Skip to content

Commit 566cd37

Browse files
Add SA1402 tests for "record class"
#3542
1 parent 0d9f20e commit 566cd37

File tree

4 files changed

+27
-4
lines changed

4 files changed

+27
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
namespace StyleCop.Analyzers.Test.CSharp10.MaintainabilityRules
5+
{
6+
using StyleCop.Analyzers.Test.MaintainabilityRules;
7+
8+
public class SA1402CSharp10ForRecordClassUnitTests : SA1402ForBlockDeclarationUnitTestsBase
9+
{
10+
public override string Keyword => "record class";
11+
12+
protected override string SettingKeyword => "class";
13+
14+
protected override bool IsConfiguredAsTopLevelTypeByDefault => true;
15+
}
16+
}

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp10/MaintainabilityRules/SA1402CSharp10ForRecordStructUnitTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

4-
#nullable disable
5-
64
namespace StyleCop.Analyzers.Test.CSharp10.MaintainabilityRules
75
{
86
using StyleCop.Analyzers.Test.MaintainabilityRules;

StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp10/MaintainabilityRules/SA1402CSharp10ForRecordUnitTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

4-
#nullable disable
5-
64
namespace StyleCop.Analyzers.Test.CSharp10.MaintainabilityRules
75
{
86
using StyleCop.Analyzers.Test.CSharp9.MaintainabilityRules;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
namespace StyleCop.Analyzers.Test.CSharp11.MaintainabilityRules
5+
{
6+
using StyleCop.Analyzers.Test.CSharp10.MaintainabilityRules;
7+
8+
public class SA1402CSharp11ForRecordClassUnitTests : SA1402CSharp10ForRecordClassUnitTests
9+
{
10+
}
11+
}

0 commit comments

Comments
 (0)