File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
TestStack.ConventionTests.Tests Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ public class ProjectBasedConventions
16
16
[ Test ]
17
17
public void ReferencingBinObj ( )
18
18
{
19
+ // Actual syntax will be (when not testing):
20
+ //
21
+ // Convention.Is<ProjectDoesNotReferenceDllsFromBinOrObjDirectories>(new[] { typeof(ProjectBasedConventions).Assembly });
22
+ //
23
+
19
24
var projectProvider = Substitute . For < IProjectProvider > ( ) ;
20
25
var projectLocator = Substitute . For < IProjectLocator > ( ) ;
21
26
projectProvider
@@ -32,6 +37,11 @@ public void ReferencingBinObj()
32
37
[ Test ]
33
38
public void ScriptsNotEmbeddedResources ( )
34
39
{
40
+ // Actual syntax will be (when not testing):
41
+ //
42
+ // Convention.Is<FilesAreEmbeddedResources>(new[] { typeof(ProjectBasedConventions).Assembly }, i => i.EndsWith(".sql"));
43
+ //
44
+
35
45
var projectProvider = Substitute . For < IProjectProvider > ( ) ;
36
46
var projectLocator = Substitute . For < IProjectLocator > ( ) ;
37
47
projectProvider
@@ -41,7 +51,7 @@ public void ScriptsNotEmbeddedResources()
41
51
var convention = new FilesAreEmbeddedResources ( projectLocator , projectProvider ) ;
42
52
43
53
var exception = Assert . Throws < ConventionFailedException > ( ( ) =>
44
- Convention . Is ( convention , new [ ] { typeof ( ProjectBasedConventions ) . Assembly } , i=> i . EndsWith ( ".sql" ) ) ) ;
54
+ Convention . Is ( convention , new [ ] { typeof ( ProjectBasedConventions ) . Assembly } , i => i . EndsWith ( ".sql" ) ) ) ;
45
55
Approvals . Verify ( exception . Message ) ;
46
56
}
47
57
}
You can’t perform that action at this time.
0 commit comments