Skip to content

Commit db447ad

Browse files
committed
refactor internal namespaces
1 parent ac09c57 commit db447ad

File tree

43 files changed

+75
-49
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+75
-49
lines changed

FluentCommandLineParser.Tests/FluentCommandLineParser.Tests.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@
157157
<Name>FluentCommandLineParser</Name>
158158
</ProjectReference>
159159
</ItemGroup>
160-
<ItemGroup />
160+
<ItemGroup>
161+
<Folder Include="Internals\Parsing\OptionParsers\" />
162+
</ItemGroup>
161163
<ItemGroup>
162164
<None Include="app.config" />
163165
<None Include="FluentCommandLineParserTests.snk" />

FluentCommandLineParser.Tests/FluentCommandLineParser/TestContext/FluentCommandLineParserTestContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#endregion
2424

2525
using Fclp.Internals;
26+
using Fclp.Internals.Parsing;
2627
using Machine.Specifications;
2728
using Moq;
2829

FluentCommandLineParser.Tests/FluentCommandLineParser/when_a_new_instance_is_created.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#endregion
2424

2525
using Fclp.Internals;
26+
using Fclp.Internals.Parsing;
2627
using Fclp.Tests.FluentCommandLineParser.TestContext;
2728
using Machine.Specifications;
2829

@@ -32,7 +33,7 @@ namespace FluentCommandLineParser
3233
{
3334
public class when_a_new_instance_is_created : FluentCommandLineParserTestContext
3435
{
35-
It should_create_a_default_parser_engine = () => sut.ParserEngine.ShouldBeOfType(typeof(Fclp.Internals.CommandLineParserEngineMark2));
36+
It should_create_a_default_parser_engine = () => sut.ParserEngine.ShouldBeOfType(typeof(CommandLineParserEngineMark2));
3637
It should_create_a_default_option_factory = () => sut.OptionFactory.ShouldBeOfType(typeof(CommandLineOptionFactory));
3738
It should_set_the_string_comparison_to_current_culture = () => sut.StringComparison.ShouldEqual(System.StringComparison.CurrentCulture);
3839
It should_have_setup_no_options_internally = () => sut.Options.ShouldBeEmpty();

FluentCommandLineParser.Tests/FluentCommandLineParser/when_executing_parse_operation/with_a_parser_engine_that_is_custom.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
using System.Collections.Generic;
2626
using Fclp.Internals;
27+
using Fclp.Internals.Parsing;
2728
using Fclp.Tests.FluentCommandLineParser.TestContext;
2829
using Machine.Specifications;
2930
using Moq;

FluentCommandLineParser.Tests/FluentCommandLineParser/when_executing_parse_operation/with_a_parser_engine_that_is_null.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
// POSSIBILITY OF SUCH DAMAGE.
2323
#endregion
2424

25+
using Fclp.Internals.Parsing;
2526
using Fclp.Tests.FluentCommandLineParser.TestContext;
2627
using Machine.Specifications;
2728

@@ -34,7 +35,7 @@ public class with_a_parser_engine_that_is_null : FluentCommandLineParserTestCont
3435
Because of = () => sut.ParserEngine = null;
3536

3637
It should_be_unable_to_assign_to_null = () => sut.ParserEngine.ShouldNotBeNull();
37-
It should_use_the_default_one_instead = () => sut.ParserEngine.ShouldBeOfType(typeof(Fclp.Internals.CommandLineParserEngineMark2));
38+
It should_use_the_default_one_instead = () => sut.ParserEngine.ShouldBeOfType(typeof(CommandLineParserEngineMark2));
3839
}
3940
}
4041
}

FluentCommandLineParser.Tests/FluentCommandLineParser/when_executing_parse_operation/with_options_that_are_specified_in_the_args.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
using System.Collections.Generic;
2626
using Fclp.Internals;
27+
using Fclp.Internals.Parsing;
2728
using Fclp.Tests.FluentCommandLineParser.TestContext;
2829
using Machine.Specifications;
2930
using Moq;

FluentCommandLineParser.Tests/FluentCommandLineParser/when_executing_parse_operation/with_options_that_have_not_been_setup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
using System.Collections.Generic;
2626
using System.Linq;
2727
using Fclp.Internals;
28+
using Fclp.Internals.Parsing;
2829
using Fclp.Tests.FluentCommandLineParser.TestContext;
2930
using Machine.Specifications;
3031
using Moq;
@@ -51,7 +52,7 @@ class with_options_that_have_not_been_setup : FluentCommandLineParserTestContext
5152

5253
args = CreateArgsFromKvp(additionalOptions);
5354

54-
var mockEngine = new Mock<Fclp.Internals.ICommandLineParserEngine>();
55+
var mockEngine = new Mock<ICommandLineParserEngine>();
5556
mockEngine.Setup(x => x.Parse(args)).Returns(additionalOptions);
5657
sut.ParserEngine = mockEngine.Object;
5758
};

FluentCommandLineParser.Tests/HelperExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#endregion
2424

2525
using Fclp.Internals;
26+
using Fclp.Internals.Parsing;
2627

2728
namespace FluentCommandLineParser.Tests
2829
{

FluentCommandLineParser.Tests/Internals/CommandLineOptionFactoryTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
#endregion
2424

2525
using Fclp.Internals;
26-
using Fclp.Internals.Parsers;
26+
using Fclp.Internals.Parsing;
27+
using Fclp.Internals.Parsing.OptionParsers;
2728
using Moq;
2829
using NUnit.Framework;
2930

FluentCommandLineParser.Tests/Internals/CommandLineOptionParserFactoryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
using System;
2626
using Fclp;
2727
using Fclp.Internals;
28-
using Fclp.Internals.Parsers;
28+
using Fclp.Internals.Parsing.OptionParsers;
2929
using Moq;
3030
using NUnit.Framework;
3131

0 commit comments

Comments
 (0)