Skip to content

Commit 40e7dab

Browse files
committed
Restructure tests
1 parent 35c7f6e commit 40e7dab

3 files changed

+28
-8
lines changed

Diff for: tests/WindowsForms.Analyzers.Tests/ControlTabOrderAnalyzerTests.InconsistentTabIndexRule.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
WindowsForms.Analyzers.ControlTabOrderAnalyzer,
99
WindowsForms.ControlTabOrderAnalyzerCodeFixProvider>;
1010

11-
namespace WindowsForms.Test
11+
namespace WindowsForms.Analyzers.Tests
1212
{
13-
public partial class ControlTabOrderAnalyzerTests
13+
partial class ControlTabOrderAnalyzerTests
1414
{
15-
[TestClass]
16-
public class InconsistentTabIndexRule
15+
partial class InconsistentTabIndexRule
1716
{
1817
[TestMethod]
1918
public async Task No_fields_no_locals_should_produce_no_diagnostics()

Diff for: tests/WindowsForms.Analyzers.Tests/ControlTabOrderAnalyzerTests.NonNumericTabIndexValueRule.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
WindowsForms.Analyzers.ControlTabOrderAnalyzer,
99
WindowsForms.ControlTabOrderAnalyzerCodeFixProvider>;
1010

11-
namespace WindowsForms.Test
11+
namespace WindowsForms.Analyzers.Tests
1212
{
13-
public partial class ControlTabOrderAnalyzerTests
13+
partial class ControlTabOrderAnalyzerTests
1414
{
15-
[TestClass]
16-
public class NonNumericTabIndexValueRule
15+
partial class NonNumericTabIndexValueRule
1716
{
1817
[TestMethod]
1918
public async Task Non_numeric_TabIndex_should_produce_diagnostics()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright (c) Igor Velikorossov. All rights reserved.
2+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
using Microsoft.VisualStudio.TestTools.UnitTesting;
5+
6+
namespace WindowsForms.Analyzers.Tests
7+
{
8+
public partial class ControlTabOrderAnalyzerTests
9+
{
10+
[TestClass]
11+
public partial class InconsistentTabIndexRule
12+
{
13+
// See nested files
14+
}
15+
16+
[TestClass]
17+
public partial class NonNumericTabIndexValueRule
18+
{
19+
// See nested files
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)