@@ -8,8 +8,8 @@ public void NodeHelper_Should_Return_Proper_Nodes_1()
8
8
foreach ( var method in typeof ( NodeHelper ) . GetMethods ( ) . Where ( m => m . IsStatic ) )
9
9
{
10
10
var node = method . GetParameters ( ) . Length == 1
11
- ? ( ASTNode ) method . Invoke ( null , new object [ ] { IgnoreOptions . None } )
12
- : ( ASTNode ) method . Invoke ( null , new object [ ] { IgnoreOptions . None , Activator . CreateInstance ( method . GetParameters ( ) [ 1 ] . ParameterType ) } ) ;
11
+ ? ( ASTNode ) method . Invoke ( null , [ IgnoreOptions . None ] )
12
+ : ( ASTNode ) method . Invoke ( null , [ IgnoreOptions . None , Activator . CreateInstance ( method . GetParameters ( ) [ 1 ] . ParameterType ) ] ) ;
13
13
14
14
node . Comments = new List < GraphQLComment > { new GraphQLComment ( "abcdef" ) } ;
15
15
if ( node is not GraphQLComment &&
@@ -29,8 +29,8 @@ public void NodeHelper_Should_Return_Proper_Nodes_2()
29
29
foreach ( var method in typeof ( NodeHelper ) . GetMethods ( ) . Where ( m => m . IsStatic ) )
30
30
{
31
31
var node = method . GetParameters ( ) . Length == 1
32
- ? ( ASTNode ) method . Invoke ( null , new object [ ] { IgnoreOptions . Comments } )
33
- : ( ASTNode ) method . Invoke ( null , new object [ ] { IgnoreOptions . Comments , Activator . CreateInstance ( method . GetParameters ( ) [ 1 ] . ParameterType ) } ) ;
32
+ ? ( ASTNode ) method . Invoke ( null , [ IgnoreOptions . Comments ] )
33
+ : ( ASTNode ) method . Invoke ( null , [ IgnoreOptions . Comments , Activator . CreateInstance ( method . GetParameters ( ) [ 1 ] . ParameterType ) ] ) ;
34
34
35
35
node . Comments = new List < GraphQLComment > { new GraphQLComment ( "abcdef" ) } ;
36
36
node . Comment . ShouldBeNull ( ) ;
@@ -46,8 +46,8 @@ public void NodeHelper_Should_Return_Proper_Nodes_3()
46
46
foreach ( var method in typeof ( NodeHelper ) . GetMethods ( ) . Where ( m => m . IsStatic ) )
47
47
{
48
48
var node = method . GetParameters ( ) . Length == 1
49
- ? ( ASTNode ) method . Invoke ( null , new object [ ] { IgnoreOptions . Locations } )
50
- : ( ASTNode ) method . Invoke ( null , new object [ ] { IgnoreOptions . Locations , Activator . CreateInstance ( method . GetParameters ( ) [ 1 ] . ParameterType ) } ) ;
49
+ ? ( ASTNode ) method . Invoke ( null , [ IgnoreOptions . Locations ] )
50
+ : ( ASTNode ) method . Invoke ( null , [ IgnoreOptions . Locations , Activator . CreateInstance ( method . GetParameters ( ) [ 1 ] . ParameterType ) ] ) ;
51
51
52
52
node . Comments = new List < GraphQLComment > { new GraphQLComment ( "abcdef" ) } ;
53
53
if ( node is not GraphQLComment &&
@@ -67,8 +67,8 @@ public void NodeHelper_Should_Return_Proper_Nodes_4()
67
67
foreach ( var method in typeof ( NodeHelper ) . GetMethods ( ) . Where ( m => m . IsStatic ) )
68
68
{
69
69
var node = method . GetParameters ( ) . Length == 1
70
- ? ( ASTNode ) method . Invoke ( null , new object [ ] { IgnoreOptions . All } )
71
- : ( ASTNode ) method . Invoke ( null , new object [ ] { IgnoreOptions . All , Activator . CreateInstance ( method . GetParameters ( ) [ 1 ] . ParameterType ) } ) ;
70
+ ? ( ASTNode ) method . Invoke ( null , [ IgnoreOptions . All ] )
71
+ : ( ASTNode ) method . Invoke ( null , [ IgnoreOptions . All , Activator . CreateInstance ( method . GetParameters ( ) [ 1 ] . ParameterType ) ] ) ;
72
72
73
73
node . Comments = new List < GraphQLComment > { new GraphQLComment ( "abcdef" ) } ;
74
74
node . Comment . ShouldBeNull ( ) ;
0 commit comments