Skip to content

Commit a0a3088

Browse files
author
Jake Ginnivan
committed
Improved the generated convention title
1 parent a19c0e0 commit a0a3088

21 files changed

+63
-55
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
'Api Controllers must be suffixed with Controller' for 'TestAssembly'
2-
---------------------------------------------------------------------
1+
'Api Controllers must be suffixed with Controller' for 'Types in TestAssembly'
2+
------------------------------------------------------------------------------
33

44
TestAssembly.Controllers.BarApiControler
55

6-
'Types named *Controller must inherit from ApiController or Controller' for 'TestAssembly'
7-
------------------------------------------------------------------------------------------
6+
'Types named *Controller must inherit from ApiController or Controller' for 'Types in TestAssembly'
7+
---------------------------------------------------------------------------------------------------
88

99
TestAssembly.Controllers.TestApiController
1010
TestAssembly.Controllers.TestController
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
'Mvc Controllers must be suffixed with Controller' for 'TestAssembly'
2-
---------------------------------------------------------------------
1+
'Mvc Controllers must be suffixed with Controller' for 'Types in TestAssembly'
2+
------------------------------------------------------------------------------
33

44
TestAssembly.Controllers.FooControler
55

6-
'Types named *Controller must inherit from ApiController or Controller' for 'TestAssembly'
7-
------------------------------------------------------------------------------------------
6+
'Types named *Controller must inherit from ApiController or Controller' for 'Types in TestAssembly'
7+
---------------------------------------------------------------------------------------------------
88

99
TestAssembly.Controllers.TestApiController
1010
TestAssembly.Controllers.TestController
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'Project must not reference dlls from bin or obj directories' for 'TestStack.ConventionTests.Tests'
2-
---------------------------------------------------------------------------------------------------
1+
'Project must not reference dlls from bin or obj directories' for 'Project references in TestStack.ConventionTests.Tests'
2+
-------------------------------------------------------------------------------------------------------------------------
33

44
bin\Debug\ApprovalTests.dll
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'Project must not reference dlls from bin or obj directories' for 'TestStack.ConventionTests.Tests'
2-
---------------------------------------------------------------------------------------------------
1+
'Project must not reference dlls from bin or obj directories' for 'Project references in TestStack.ConventionTests.Tests'
2+
-------------------------------------------------------------------------------------------------------------------------
33

44
bin\Debug\ApprovalTests.dll

TestStack.ConventionTests.Tests/ProjectBasedConventions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void scripts_not_embedded_resources()
5757
.Returns(XDocument.Parse(Resources.ProjectFileWithInvalidSqlScriptFile));
5858

5959
var projectLocator = Substitute.For<IProjectLocator>();
60-
var project = new ProjectFiles(typeof (ProjectBasedConventions).Assembly, projectProvider, projectLocator);
60+
var project = new ProjectFileItems(typeof (ProjectBasedConventions).Assembly, projectProvider, projectLocator);
6161
var ex = Assert.Throws<ConventionFailedException>(() => Convention.Is(new FilesAreEmbeddedResources(".sql"), project));
6262

6363
Approvals.Verify(ex.Message);
@@ -67,7 +67,7 @@ public void scripts_not_embedded_resources()
6767
public void scripts_not_embedded_resources_with_approved_exceptions()
6868
{
6969
var projectLocator = Substitute.For<IProjectLocator>();
70-
var project = new ProjectFiles(typeof (ProjectBasedConventions).Assembly, projectProvider, projectLocator);
70+
var project = new ProjectFileItems(typeof (ProjectBasedConventions).Assembly, projectProvider, projectLocator);
7171
projectProvider
7272
.LoadProjectDocument(Arg.Any<string>())
7373
.Returns(XDocument.Parse(Resources.ProjectFileWithInvalidSqlScriptFile));
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'.sql Files must be embedded resources' for 'TestStack.ConventionTests.Tests'
2-
-----------------------------------------------------------------------------
1+
'.sql Files must be embedded resources' for 'Project file items in TestStack.ConventionTests.Tests'
2+
---------------------------------------------------------------------------------------------------
33

44
Scripts\Script2.sql
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'.sql Files must be embedded resources' for 'TestStack.ConventionTests.Tests'
2-
-----------------------------------------------------------------------------
1+
'.sql Files must be embedded resources' for 'Project file items in TestStack.ConventionTests.Tests'
2+
---------------------------------------------------------------------------------------------------
33

44
Scripts\Script2.sql
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
'Types must have a default constructor' for 'nHibernate Entitites'
2-
------------------------------------------------------------------
1+
'Types must have a default constructor' for 'Types in nHibernate Entitites'
2+
---------------------------------------------------------------------------
33

44
TestAssembly.ClassWithNoDefaultCtor
55
TestAssembly.ClassWithPrivateDefaultCtor
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
'Types must have a default constructor' for 'nHibernate Entitites'
2-
------------------------------------------------------------------
1+
'Types must have a default constructor' for 'Types in nHibernate Entitites'
2+
---------------------------------------------------------------------------
33

44
TestAssembly.ClassWithNoDefaultCtor
55
TestAssembly.ClassWithPrivateDefaultCtor
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'Methods must be virtual' for 'nHibernate Entitites'
2-
----------------------------------------------------
1+
'Methods must be virtual' for 'Types in nHibernate Entitites'
2+
-------------------------------------------------------------
33

44
TestAssembly.SampleDomainClass.TestNonVirtual

0 commit comments

Comments
 (0)