File tree Expand file tree Collapse file tree
TestStack.ConventionTests.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ public class ProjectBasedConventions
1616 [ Test ]
1717 public void ReferencingBinObj ( )
1818 {
19+ // Actual syntax will be (when not testing):
20+ //
21+ // Convention.Is<ProjectDoesNotReferenceDllsFromBinOrObjDirectories>(new[] { typeof(ProjectBasedConventions).Assembly });
22+ //
23+
1924 var projectProvider = Substitute . For < IProjectProvider > ( ) ;
2025 var projectLocator = Substitute . For < IProjectLocator > ( ) ;
2126 projectProvider
@@ -32,6 +37,11 @@ public void ReferencingBinObj()
3237 [ Test ]
3338 public void ScriptsNotEmbeddedResources ( )
3439 {
40+ // Actual syntax will be (when not testing):
41+ //
42+ // Convention.Is<FilesAreEmbeddedResources>(new[] { typeof(ProjectBasedConventions).Assembly }, i => i.EndsWith(".sql"));
43+ //
44+
3545 var projectProvider = Substitute . For < IProjectProvider > ( ) ;
3646 var projectLocator = Substitute . For < IProjectLocator > ( ) ;
3747 projectProvider
@@ -41,7 +51,7 @@ public void ScriptsNotEmbeddedResources()
4151 var convention = new FilesAreEmbeddedResources ( projectLocator , projectProvider ) ;
4252
4353 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" ) ) ) ;
4555 Approvals . Verify ( exception . Message ) ;
4656 }
4757 }
You can’t perform that action at this time.
0 commit comments