Skip to content

Commit fb0f24f

Browse files
author
Jake Ginnivan
committed
Fixing a few things
1 parent 018c67f commit fb0f24f

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
Failed: 'Api Controllers must be suffixed with Controller' for 'TestAssembly'
2-
-----------------------------------------------------------------------------
1+
'Api Controllers must be suffixed with Controller' for 'TestAssembly'
2+
---------------------------------------------------------------------
33

44
TestAssembly.Controllers.BarApiControler
55

6-
7-
Failed: 'Types named *Controller must inherit from ApiController or Controller' for 'TestAssembly'
8-
--------------------------------------------------------------------------------------------------
6+
'Types named *Controller must inherit from ApiController or Controller' for 'TestAssembly'
7+
------------------------------------------------------------------------------------------
98

109
TestAssembly.Controllers.TestApiController
11-
TestAssembly.Controllers.TestController
10+
TestAssembly.Controllers.TestController
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
Failed: 'Mvc Controllers must be suffixed with Controller' for 'TestAssembly'
2-
-----------------------------------------------------------------------------
1+
'Mvc Controllers must be suffixed with Controller' for 'TestAssembly'
2+
---------------------------------------------------------------------
33

44
TestAssembly.Controllers.FooControler
55

6-
7-
Failed: 'Types named *Controller must inherit from ApiController or Controller' for 'TestAssembly'
8-
--------------------------------------------------------------------------------------------------
6+
'Types named *Controller must inherit from ApiController or Controller' for 'TestAssembly'
7+
------------------------------------------------------------------------------------------
98

109
TestAssembly.Controllers.TestApiController
11-
TestAssembly.Controllers.TestController
10+
TestAssembly.Controllers.TestController

TestStack.ConventionTests.Tests/MvcConventions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class MvcConventions
1515
public void controller_conventions()
1616
{
1717
var types = Types.InAssemblyOf<TestController>();
18-
var convention = new MvcControllerConvention();
18+
var convention = new MvcControllerNameAndBaseClassConvention();
1919

2020
var ex = Assert.Throws<ConventionFailedException>(() => Convention.Is(convention, types));
2121
Approvals.Verify(ex.Message);

TestStack.ConventionTests/ConventionData/Types.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
namespace TestStack.ConventionTests.ConventionData
22
{
33
using System;
4-
using System.Collections;
54
using System.Collections.Generic;
65
using System.Linq;
76

0 commit comments

Comments
 (0)