@@ -8,8 +8,8 @@ public void NodeHelper_Should_Return_Proper_Nodes_1()
88 foreach ( var method in typeof ( NodeHelper ) . GetMethods ( ) . Where ( m => m . IsStatic ) )
99 {
1010 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 ) ] ) ;
1313
1414 node . Comments = new List < GraphQLComment > { new GraphQLComment ( "abcdef" ) } ;
1515 if ( node is not GraphQLComment &&
@@ -29,8 +29,8 @@ public void NodeHelper_Should_Return_Proper_Nodes_2()
2929 foreach ( var method in typeof ( NodeHelper ) . GetMethods ( ) . Where ( m => m . IsStatic ) )
3030 {
3131 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 ) ] ) ;
3434
3535 node . Comments = new List < GraphQLComment > { new GraphQLComment ( "abcdef" ) } ;
3636 node . Comment . ShouldBeNull ( ) ;
@@ -46,8 +46,8 @@ public void NodeHelper_Should_Return_Proper_Nodes_3()
4646 foreach ( var method in typeof ( NodeHelper ) . GetMethods ( ) . Where ( m => m . IsStatic ) )
4747 {
4848 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 ) ] ) ;
5151
5252 node . Comments = new List < GraphQLComment > { new GraphQLComment ( "abcdef" ) } ;
5353 if ( node is not GraphQLComment &&
@@ -67,8 +67,8 @@ public void NodeHelper_Should_Return_Proper_Nodes_4()
6767 foreach ( var method in typeof ( NodeHelper ) . GetMethods ( ) . Where ( m => m . IsStatic ) )
6868 {
6969 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 ) ] ) ;
7272
7373 node . Comments = new List < GraphQLComment > { new GraphQLComment ( "abcdef" ) } ;
7474 node . Comment . ShouldBeNull ( ) ;
0 commit comments