29
29
30
30
namespace Fclp . Tests . Internals
31
31
{
32
- abstract class CommandLineParserEngineMark2TestContext : TestContextBase < CommandLineParserEngineMark2 >
32
+ sealed class CommandLineParserEnginerMark2Tests
33
33
{
34
- Establish context = ( ) => CreateSut ( ) ;
35
- }
36
-
37
- sealed class Parse
38
- {
39
- abstract class ParseTestContext : CommandLineParserEngineMark2TestContext
34
+ abstract class CommandLineParserEngineMark2TestContext : TestContextBase < CommandLineParserEngineMark2 >
40
35
{
41
- protected static string [ ] args ;
42
- protected static ParserEngineResult result ;
36
+ Establish context = ( ) => CreateSut ( ) ;
37
+ }
43
38
44
- protected static void SetupArgs ( string arguments )
39
+ sealed class Parse
40
+ {
41
+ abstract class ParseTestContext : CommandLineParserEngineMark2TestContext
45
42
{
46
- args = arguments . SplitOnWhitespace ( ) . ToArray ( ) ;
47
- }
43
+ protected static string [ ] args ;
44
+ protected static ParserEngineResult result ;
48
45
49
- Because of = ( ) =>
50
- result = sut . Parse ( args ) ;
51
- }
46
+ protected static void SetupArgs ( string arguments )
47
+ {
48
+ args = arguments . SplitOnWhitespace ( ) . ToArray ( ) ;
49
+ }
52
50
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 ;
56
58
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 ( ) ;
59
61
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
+ }
63
65
64
- class when_ : ParseTestContext
65
- {
66
- Establish context = ( ) => SetupArgs ( "" ) ;
67
- }
66
+ class when_ : ParseTestContext
67
+ {
68
+ Establish context = ( ) => SetupArgs ( "" ) ;
69
+ }
70
+ }
68
71
}
69
72
70
73
}
0 commit comments