File tree 1 file changed +14
-3
lines changed
TestStack.ConventionTests/ConventionData
1 file changed +14
-3
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
private Types ( IEnumerable < Type > typesToVerify , string descriptionOfTypes )
15
16
{
16
- TypesToVerify = types . ToArray ( ) ;
17
+ TypesToVerify = typesToVerify ;
17
18
Description = descriptionOfTypes ;
18
19
}
19
20
20
- public Type [ ] TypesToVerify { get ; private set ; }
21
+ public IEnumerable < Type > TypesToVerify { get ; private set ; }
21
22
22
23
public string Description { get ; private set ; }
23
24
@@ -202,6 +203,16 @@ public static Types InCollection(IEnumerable<Type> types, string descriptionOfTy
202
203
return new Types ( types , descriptionOfTypes ) ;
203
204
}
204
205
206
+ public IEnumerator < Type > GetEnumerator ( )
207
+ {
208
+ return TypesToVerify . GetEnumerator ( ) ;
209
+ }
210
+
211
+ IEnumerator IEnumerable . GetEnumerator ( )
212
+ {
213
+ return GetEnumerator ( ) ;
214
+ }
215
+
205
216
private static string GetAssemblyName ( Assembly assembly )
206
217
{
207
218
return assembly . GetName ( ) . Name ;
You can’t perform that action at this time.
0 commit comments