Skip to content

Commit 7b9b0ad

Browse files
committed
pre-defining predicates for Types and Must properties
1 parent 76d9a03 commit 7b9b0ad

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

ConventionTests/ConventionTests.NUnit.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,16 @@ public interface IConventionTest
2828
/// </summary>
2929
public class ConventionData
3030
{
31-
/// <summary>
31+
public static readonly Predicate<Type> All = _ => true;
32+
public static readonly Predicate<Type> Fail = _ => false;
33+
34+
public ConventionData()
35+
{
36+
Types = All;
37+
Must = Fail;
38+
}
39+
40+
/// <summary>
3241
/// list of assemblies to scan for types that our convention is related to. Can be null, in which case all assemblies starting with 'Als.' will be scanned
3342
/// </summary>
3443
public Assembly[] Assemblies { get; set; }

0 commit comments

Comments
 (0)