You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Descriptive text used for failure message in test. Should explan what is wrong, and how to fix it (how to make types that do not conform to the convention do so).
43
+
/// </summary>
44
+
publicstringDescription{get;set;}
45
+
46
+
/// <summary>
47
+
/// Specifies that there are valid exceptions to the rule specified by the convention.
48
+
/// </summary>
49
+
/// <remarks>
50
+
/// When set to <c>true</c> will run the test as Approval test so that the exceptional cases can be reviewed and approved.
51
+
/// </remarks>
52
+
publicboolHasApprovedExceptions{get;set;}
53
+
54
+
/// <summary>
55
+
/// This is the convention. The predicate should return <c>true</c> for types that do conform to the convention, and <c>false</c> otherwise
56
+
/// </summary>
57
+
publicPredicate<TItem>Must{get;set;}
58
+
59
+
/// <summary>
60
+
/// Predicate that finds types that we want to apply out convention to.
Copy file name to clipboardExpand all lines: ConventionTests/Conventions/Internal/ConventionData.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
{
3
3
usingSystem;
4
4
usingSystem.Reflection;
5
+
usingSystem.Text;
5
6
6
7
/// <summary>
7
8
/// This is where we set what our convention is all about
@@ -31,7 +32,6 @@ public ConventionData(params Type[] sourceTypes)
31
32
32
33
publicType[]SourceTypes{get;set;}
33
34
34
-
35
35
/// <summary>
36
36
/// list of assemblies to scan for types that our convention is related to. Can be null, in which case all assemblies starting with The same prefix as your test assembly will be scanned
37
37
/// </summary>
@@ -60,7 +60,7 @@ public ConventionData(params Type[] sourceTypes)
/// Base class for convention tests. Inherited types should be put in "/Conventions" folder in test assembly and follow Sentence_naming_convention_with_underscores_indead_of_spaces These tests will be ran by
Copy file name to clipboardExpand all lines: ConventionTests/Conventions/Internal/ConventionTest.cs
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
usingSystem;
4
4
usingSystem.Linq;
5
5
usingSystem.Reflection;
6
+
usingSystem.Text;
6
7
7
8
/// <summary>
8
9
/// Base class for convention tests. Inherited types should be put in "/Conventions" folder in test assembly and follow Sentence_naming_convention_with_underscores_indead_of_spaces These tests will be ran by
@@ -21,17 +22,22 @@ public override void Execute(IAssert assert)
21
22
assert.Inconclusive(
22
23
"No types found to apply the convention to. Make sure the Types predicate is correct and that the right assemblies to scan are specified.");
0 commit comments