@@ -28,7 +28,7 @@ public class ExecutableAttributeStepScanner : IStepScanner
28
28
{
29
29
public IEnumerable < Step > Scan ( ITestContext testContext , MethodInfo candidateMethod )
30
30
{
31
- var executableAttribute = ( ExecutableAttribute ) candidateMethod . GetCustomAttributes ( typeof ( ExecutableAttribute ) , false ) . FirstOrDefault ( ) ;
31
+ var executableAttribute = ( ExecutableAttribute ) candidateMethod . GetCustomAttributes ( typeof ( ExecutableAttribute ) , true ) . FirstOrDefault ( ) ;
32
32
if ( executableAttribute == null )
33
33
yield break ;
34
34
@@ -38,7 +38,7 @@ public IEnumerable<Step> Scan(ITestContext testContext, MethodInfo candidateMeth
38
38
39
39
var stepAsserts = IsAssertingByAttribute ( candidateMethod ) ;
40
40
41
- var runStepWithArgsAttributes = ( RunStepWithArgsAttribute [ ] ) candidateMethod . GetCustomAttributes ( typeof ( RunStepWithArgsAttribute ) , false ) ;
41
+ var runStepWithArgsAttributes = ( RunStepWithArgsAttribute [ ] ) candidateMethod . GetCustomAttributes ( typeof ( RunStepWithArgsAttribute ) , true ) ;
42
42
if ( runStepWithArgsAttributes . Length == 0 )
43
43
{
44
44
var stepAction = StepActionFactory . GetStepAction ( candidateMethod , new object [ 0 ] ) ;
@@ -71,7 +71,7 @@ public IEnumerable<Step> Scan(ITestContext testContext, MethodInfo candidateMeth
71
71
72
72
public IEnumerable < Step > Scan ( ITestContext testContext , MethodInfo method , Example example )
73
73
{
74
- var executableAttribute = ( ExecutableAttribute ) method . GetCustomAttributes ( typeof ( ExecutableAttribute ) , false ) . FirstOrDefault ( ) ;
74
+ var executableAttribute = ( ExecutableAttribute ) method . GetCustomAttributes ( typeof ( ExecutableAttribute ) , true ) . FirstOrDefault ( ) ;
75
75
if ( executableAttribute == null )
76
76
yield break ;
77
77
@@ -112,7 +112,7 @@ private static bool IsAssertingByAttribute(MethodInfo method)
112
112
113
113
private static ExecutableAttribute GetExecutableAttribute ( MethodInfo method )
114
114
{
115
- return ( ExecutableAttribute ) method . GetCustomAttributes ( typeof ( ExecutableAttribute ) , false ) . First ( ) ;
115
+ return ( ExecutableAttribute ) method . GetCustomAttributes ( typeof ( ExecutableAttribute ) , true ) . First ( ) ;
116
116
}
117
117
}
118
118
}
0 commit comments