Skip to content

Commit 673ee12

Browse files
committed
formatting
1 parent 65f1188 commit 673ee12

File tree

1 file changed

+30
-27
lines changed

1 file changed

+30
-27
lines changed

FluentCommandLineParser.Tests/Internals/CommandLineParserEngineMark2Tests.cs

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -29,42 +29,45 @@
2929

3030
namespace Fclp.Tests.Internals
3131
{
32-
abstract class CommandLineParserEngineMark2TestContext : TestContextBase<CommandLineParserEngineMark2>
32+
sealed class CommandLineParserEnginerMark2Tests
3333
{
34-
Establish context = () => CreateSut();
35-
}
36-
37-
sealed class Parse
38-
{
39-
abstract class ParseTestContext : CommandLineParserEngineMark2TestContext
34+
abstract class CommandLineParserEngineMark2TestContext : TestContextBase<CommandLineParserEngineMark2>
4035
{
41-
protected static string[] args;
42-
protected static ParserEngineResult result;
36+
Establish context = () => CreateSut();
37+
}
4338

44-
protected static void SetupArgs(string arguments)
39+
sealed class Parse
40+
{
41+
abstract class ParseTestContext : CommandLineParserEngineMark2TestContext
4542
{
46-
args = arguments.SplitOnWhitespace().ToArray();
47-
}
43+
protected static string[] args;
44+
protected static ParserEngineResult result;
4845

49-
Because of = () =>
50-
result = sut.Parse(args);
51-
}
46+
protected static void SetupArgs(string arguments)
47+
{
48+
args = arguments.SplitOnWhitespace().ToArray();
49+
}
5250

53-
class when_args_is_null : ParseTestContext
54-
{
55-
Establish context = () => args = null;
51+
Because of = () =>
52+
result = sut.Parse(args);
53+
}
54+
55+
class when_args_is_null : ParseTestContext
56+
{
57+
Establish context = () => args = null;
5658

57-
It should_return_a_result_with_no_parsed_options = () =>
58-
result.ParsedOptions.ShouldBeEmpty();
59+
It should_return_a_result_with_no_parsed_options = () =>
60+
result.ParsedOptions.ShouldBeEmpty();
5961

60-
It should_return_a_result_with_no_additional_values = () =>
61-
result.AdditionalValues.ShouldBeEmpty();
62-
}
62+
It should_return_a_result_with_no_additional_values = () =>
63+
result.AdditionalValues.ShouldBeEmpty();
64+
}
6365

64-
class when_ : ParseTestContext
65-
{
66-
Establish context = () => SetupArgs("");
67-
}
66+
class when_ : ParseTestContext
67+
{
68+
Establish context = () => SetupArgs("");
69+
}
70+
}
6871
}
6972

7073
}

0 commit comments

Comments
 (0)