Skip to content

Commit ea4714b

Browse files
gsscodermoh-hassan
authored andcommitted
Using statements cleanup
1 parent a261a0d commit ea4714b

30 files changed

+49
-115
lines changed

tests/CommandLine.Tests/Fakes/Hidden_Option.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
7-
namespace CommandLine.Tests.Fakes
1+
namespace CommandLine.Tests.Fakes
82
{
93
public class Hidden_Option
104
{

tests/CommandLine.Tests/Fakes/Options_HelpText_Ordering.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
22

3-
using System.Collections.Generic;
4-
using System.Runtime.CompilerServices;
5-
63
namespace CommandLine.Tests.Fakes
74
{
85

tests/CommandLine.Tests/Fakes/Options_With_Sequence_Having_Both_Min_And_Max_Equal.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
22

3-
using System;
43
using System.Collections.Generic;
5-
using System.Linq;
6-
using System.Text;
74

85
namespace CommandLine.Tests.Fakes
96
{

tests/CommandLine.Tests/Fakes/ResourceFakes.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
7-
namespace CommandLine.Tests.Fakes
1+
namespace CommandLine.Tests.Fakes
82
{
93
public static class StaticResource
104
{

tests/CommandLine.Tests/Unit/BaseAttributeTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Linq;
32
using Xunit;
43

54
namespace CommandLine.Tests.Unit

tests/CommandLine.Tests/Unit/Core/InstanceBuilderTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
using System.Collections.Generic;
1414
using System.Globalization;
1515
using System.Linq;
16-
1716
using Xunit;
18-
using System.Reflection;
1917

2018
namespace CommandLine.Tests.Unit.Core
2119
{

tests/CommandLine.Tests/Unit/Core/InstanceChooserTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
using System.Collections.Generic;
55
using System.Globalization;
66
using System.Linq;
7+
using Xunit;
8+
using FluentAssertions;
79
using CommandLine.Core;
810
using CommandLine.Tests.Fakes;
9-
using FluentAssertions;
10-
using Xunit;
1111

1212
namespace CommandLine.Tests.Unit.Core
1313
{

tests/CommandLine.Tests/Unit/Core/KeyValuePairHelperTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
using System.Collections.Generic;
44
using System.Linq;
5-
using CommandLine.Core;
65
using Xunit;
6+
using CommandLine.Core;
77

88
namespace CommandLine.Tests.Unit.Core
99
{

tests/CommandLine.Tests/Unit/Core/NameLookupTests.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
22

3-
using CommandLine.Core;
4-
5-
using CSharpx;
6-
7-
using FluentAssertions;
8-
93
using System;
104
using System.Collections.Generic;
11-
125
using Xunit;
6+
using FluentAssertions;
7+
using CommandLine.Core;
8+
using CSharpx;
139

1410
namespace CommandLine.Tests.Unit.Core
1511
{

tests/CommandLine.Tests/Unit/Core/OptionMapperTests.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@
44
using System.Collections.Generic;
55
using System.Globalization;
66
using System.Linq;
7-
87
#if PLATFORM_DOTNET
98
using System.Reflection;
109
#endif
11-
using CommandLine.Core;
12-
using CommandLine.Tests.Fakes;
13-
1410
using Xunit;
15-
1611
using CSharpx;
17-
1812
using RailwaySharp.ErrorHandling;
13+
using CommandLine.Core;
14+
using CommandLine.Tests.Fakes;
1915

2016
namespace CommandLine.Tests.Unit.Core
2117
{

tests/CommandLine.Tests/Unit/Core/ReflectionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
22

3+
using Xunit;
4+
using FluentAssertions;
35
using CommandLine.Core;
46
using CommandLine.Tests.Fakes;
5-
using FluentAssertions;
6-
using Xunit;
77

88
namespace CommandLine.Tests.Unit.Infrastructure
99
{

tests/CommandLine.Tests/Unit/Core/ScalarTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
22

33
using System.Linq;
4-
using CommandLine.Core;
5-
using CSharpx;
64
using Xunit;
75
using FluentAssertions;
6+
using CSharpx;
7+
using CommandLine.Core;
88

99
namespace CommandLine.Tests.Unit.Core
1010
{

tests/CommandLine.Tests/Unit/Core/SequenceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
22

33
using System.Linq;
4-
using CommandLine.Core;
5-
using CSharpx;
64
using Xunit;
75
using FluentAssertions;
6+
using CSharpx;
7+
using CommandLine.Core;
88

99
namespace CommandLine.Tests.Unit.Core
1010
{

tests/CommandLine.Tests/Unit/Core/SwitchTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
22

33
using System.Linq;
4-
using CommandLine.Core;
5-
using CSharpx;
64
using Xunit;
75
using FluentAssertions;
6+
using CSharpx;
7+
using CommandLine.Core;
88

99
namespace CommandLine.Tests.Unit.Core
1010
{

tests/CommandLine.Tests/Unit/Core/TextWrapperTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System;
22
using System.Linq;
3-
using CommandLine.Text;
4-
using FluentAssertions;
53
using Xunit;
4+
using FluentAssertions;
5+
using CSharpx;
6+
using CommandLine.Text;
67

78
namespace CommandLine.Tests.Unit.Core
89
{

tests/CommandLine.Tests/Unit/Core/TokenPartitionerTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
22

3-
using CommandLine.Core;
4-
5-
using CSharpx;
6-
73
using System;
84
using System.Collections.Generic;
95
using System.Linq;
10-
116
using Xunit;
7+
using CSharpx;
8+
using CommandLine.Core;
129

1310
namespace CommandLine.Tests.Unit.Core
1411
{

tests/CommandLine.Tests/Unit/Core/TokenTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
22

3-
using CommandLine.Core;
43
using Xunit;
4+
using CommandLine.Core;
55

66
namespace CommandLine.Tests.Unit.Core
77
{

tests/CommandLine.Tests/Unit/Core/TokenizerTests.cs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
22

3-
using CommandLine.Core;
4-
using CommandLine.Infrastructure;
5-
6-
using CSharpx;
7-
8-
using FluentAssertions;
9-
10-
using RailwaySharp.ErrorHandling;
11-
123
using System;
134
using System.Collections.Generic;
145
using System.Linq;
15-
166
using Xunit;
7+
using FluentAssertions;
8+
using CSharpx;
9+
using RailwaySharp.ErrorHandling;
10+
using CommandLine.Core;
11+
using CommandLine.Infrastructure;
1712

1813
namespace CommandLine.Tests.Unit.Core
1914
{

tests/CommandLine.Tests/Unit/Core/TypeConverterTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Globalization;
4-
using CommandLine.Core;
5-
using CSharpx;
6-
using FluentAssertions;
74
using Xunit;
5+
using FluentAssertions;
6+
using CSharpx;
7+
using CommandLine.Core;
88

99
namespace CommandLine.Tests.Unit.Core
1010
{

tests/CommandLine.Tests/Unit/Issue104Tests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using System.Linq;
2+
using Xunit;
3+
using FluentAssertions;
24
using CommandLine.Tests.Fakes;
35
using CommandLine.Text;
4-
using FluentAssertions;
5-
using Xunit;
6-
using Xunit.Abstractions;
76

87
//Issue #104
98
//When outputting HelpText, the code will correctly list valid values for enum type options. However, if the option is a nullable enum type, then it will not list the valid values.

tests/CommandLine.Tests/Unit/Issue389Tests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
using CommandLine.Text;
2-
using System;
3-
using System.Collections.Generic;
1+
using System.Collections.Generic;
42
using System.Linq;
5-
using System.Text;
63
using Xunit;
4+
using CommandLine.Text;
75

86
namespace CommandLine.Tests.Unit
97
{

tests/CommandLine.Tests/Unit/Issue418Tests.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
using CommandLine.Text;
21
using System;
32
using System.IO;
4-
using System.Collections.Generic;
5-
using System.Linq;
6-
using System.Text;
7-
using CommandLine.Tests.Fakes;
8-
using Xunit;
93
using FluentAssertions;
4+
using Xunit;
5+
using CommandLine.Tests.Fakes;
106

117
namespace CommandLine.Tests.Unit
128
{

tests/CommandLine.Tests/Unit/Issue482Tests.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Globalization;
4-
using CommandLine.Core;
53
using System.Linq;
6-
using System.Reflection;
7-
using CommandLine.Infrastructure;
84
using CommandLine.Tests.Fakes;
95
using CommandLine.Text;
10-
using FluentAssertions;
116
using Xunit;
12-
using System.Text;
13-
using Xunit.Sdk;
147

158
namespace CommandLine.Tests.Unit
169
{

tests/CommandLine.Tests/Unit/ParserResultExtensionsTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
22

3-
using System;
4-
using System.Collections.Generic;
53
using System.Linq;
6-
using CommandLine.Tests.Fakes;
74
using Xunit;
85
using FluentAssertions;
6+
using CommandLine.Tests.Fakes;
97

108
namespace CommandLine.Tests.Unit
119
{

tests/CommandLine.Tests/Unit/ParserSettingsTests.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.IO;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
7-
using FluentAssertions;
1+
using System.IO;
82
using Xunit;
3+
using FluentAssertions;
94

105
namespace CommandLine.Tests.Unit
116
{

tests/CommandLine.Tests/Unit/ParserTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
using System;
44
using System.Collections.Generic;
5-
using System.Diagnostics;
65
using System.IO;
76
using System.Linq;
8-
using CommandLine.Tests.Fakes;
9-
using FluentAssertions;
107
using Xunit;
8+
using FluentAssertions;
119
using CommandLine.Text;
10+
using CommandLine.Tests.Fakes;
1211

1312
namespace CommandLine.Tests.Unit
1413
{

tests/CommandLine.Tests/Unit/StringBuilderExtensionsTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
1+
using System.Collections.Generic;
42
using System.Text;
5-
using System.Threading.Tasks;
63
using Xunit;
74
using FluentAssertions;
85
using CommandLine.Infrastructure;

tests/CommandLine.Tests/Unit/Text/HelpTextAutoBuildFix.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using System;
22
using System.Linq;
3+
using Xunit;
4+
using FluentAssertions;
35
using CommandLine.Tests.Fakes;
46
using CommandLine.Text;
5-
using FluentAssertions;
6-
using Xunit;
77

88
namespace CommandLine.Tests.Unit.Text
99
{

tests/CommandLine.Tests/Unit/Text/HelpTextTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@
66
using System.Linq;
77
using System.Reflection;
88
using System.Text;
9-
9+
using Xunit;
10+
using FluentAssertions;
1011
using CommandLine.Core;
1112
using CommandLine.Infrastructure;
1213
using CommandLine.Tests.Fakes;
1314
using CommandLine.Text;
1415

15-
using FluentAssertions;
16-
17-
using Xunit;
18-
1916
namespace CommandLine.Tests.Unit.Text
2017
{
2118
public class HelpTextTests : IDisposable

0 commit comments

Comments
 (0)