File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
TestStack.ConventionTests/ConventionData Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
namespace TestStack . ConventionTests . ConventionData
2
2
{
3
3
using System ;
4
+ using System . Collections ;
4
5
using System . Collections . Generic ;
5
6
using System . ComponentModel ;
6
7
using System . Linq ;
9
10
/// <summary>
10
11
/// This is where we set what our convention is all about.
11
12
/// </summary>
12
- public class Types : IConventionData
13
+ public class Types : IConventionData , IEnumerable < Type >
13
14
{
14
15
public Types ( string descriptionOfTypes ) : this ( Enumerable . Empty < Type > ( ) , descriptionOfTypes )
15
16
{
@@ -21,7 +22,7 @@ public Types(IEnumerable<Type> types, string descriptionOfTypes)
21
22
Description = descriptionOfTypes ;
22
23
}
23
24
24
- public Type [ ] TypesToVerify { get ; private set ; }
25
+ public IEnumerable < Type > TypesToVerify { get ; private set ; }
25
26
26
27
public string Description { get ; private set ; }
27
28
@@ -210,5 +211,15 @@ private static string GetAssemblyName(Assembly assembly)
210
211
{
211
212
return assembly . GetName ( ) . Name ;
212
213
}
214
+
215
+ public IEnumerator < Type > GetEnumerator ( )
216
+ {
217
+ return TypesToVerify . GetEnumerator ( ) ;
218
+ }
219
+
220
+ IEnumerator IEnumerable . GetEnumerator ( )
221
+ {
222
+ return GetEnumerator ( ) ;
223
+ }
213
224
}
214
225
}
You can’t perform that action at this time.
0 commit comments