File tree Expand file tree Collapse file tree 4 files changed +17
-7
lines changed
FluentCommandLineParser.Tests/Internals Expand file tree Collapse file tree 4 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ namespace Fclp.Tests.Internals
31
31
{
32
32
abstract class CommandLineParserEngineMark2TestContext : TestContextBase < CommandLineParserEngineMark2 >
33
33
{
34
- Establish context = ( ) => CreatSut ( ) ;
34
+ Establish context = ( ) => CreateSut ( ) ;
35
35
}
36
36
37
37
sealed class Parse
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public void should_parse_single_options_correctly(
104
104
expectedValue = ReplaceWithDoubleQuotes ( expectedValue ) ;
105
105
106
106
InitialiseFixture ( ) ;
107
- CreatSut ( ) ;
107
+ CreateSut ( ) ;
108
108
109
109
var result = sut . Parse ( convertedArgs ) ;
110
110
@@ -161,7 +161,7 @@ public void should_parse_double_options_correctly(
161
161
secondExpectedValue = ReplaceWithDoubleQuotes ( secondExpectedValue ) ;
162
162
163
163
InitialiseFixture ( ) ;
164
- CreatSut ( ) ;
164
+ CreateSut ( ) ;
165
165
166
166
var result = sut . Parse ( convertedArgs ) ;
167
167
@@ -201,7 +201,7 @@ public void should_parse_boolean_values_correctly(
201
201
var convertedArgs = ParseArguments ( arguments ) ;
202
202
203
203
InitialiseFixture ( ) ;
204
- CreatSut ( ) ;
204
+ CreateSut ( ) ;
205
205
206
206
var result = sut . Parse ( convertedArgs ) ;
207
207
@@ -234,7 +234,7 @@ public void should_parse_combined_boolean_values_correctly(
234
234
expectedValue = ReplaceWithDoubleQuotes ( expectedValue ) ;
235
235
236
236
InitialiseFixture ( ) ;
237
- CreatSut ( ) ;
237
+ CreateSut ( ) ;
238
238
239
239
var result = sut . Parse ( convertedArgs ) ;
240
240
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ sealed class HelpCommandLineOptionTests
32
32
{
33
33
abstract class HelpCommandLineOptionTestContext : TestContextBase < HelpCommandLineOption >
34
34
{
35
- Establish context = ( ) => CreatSut ( ) ;
35
+ Establish context = ( ) => CreateSut ( ) ;
36
36
}
37
37
38
38
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ protected static IFixture InitialiseFixture()
49
49
return fixture ;
50
50
}
51
51
52
- protected static TSut CreatSut ( )
52
+ protected static TSut CreateSut ( )
53
53
{
54
54
sut = fixture . Create < TSut > ( ) ;
55
55
return sut ;
@@ -72,5 +72,15 @@ protected static string ReplaceWithDoubleQuotes(string args)
72
72
if ( args == null ) return null ;
73
73
return args . Replace ( '\' ' , '"' ) ;
74
74
}
75
+
76
+ protected static void FreezeMock < TType > ( out Mock < TType > obj ) where TType : class
77
+ {
78
+ obj = fixture . Freeze < Mock < TType > > ( ) ;
79
+ }
80
+
81
+ protected static void Create < TType > ( out TType obj )
82
+ {
83
+ obj = fixture . Create < TType > ( ) ;
84
+ }
75
85
}
76
86
}
You can’t perform that action at this time.
0 commit comments