Skip to content

Commit 75ebb13

Browse files
author
Jake Ginnivan
committed
Moved things around
1 parent 8615375 commit 75ebb13

File tree

8 files changed

+35
-34
lines changed

8 files changed

+35
-34
lines changed

TestStack.ConventionTests.Tests/ConventionAssertionClassTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Collections.Generic;
44
using ApprovalTests.Reporters;
55
using NUnit.Framework;
6+
using TestStack.ConventionTests.Internal;
67

78
[TestFixture]
89
[UseReporter(typeof(DiffReporter))] //NOTE: Can we take care of this in IsWithApprovedExceptions?

TestStack.ConventionTests/ConventionReport.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{
33
using System.Collections.Generic;
44
using System.Linq;
5+
using TestStack.ConventionTests.Internal;
56

67
public class ConventionReport
78
{

TestStack.ConventionTests/ConventionReportTextRenderer.cs renamed to TestStack.ConventionTests/Internal/ConventionReportTextRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace TestStack.ConventionTests
1+
namespace TestStack.ConventionTests.Internal
22
{
33
using System.Text;
44

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
namespace TestStack.ConventionTests
2-
{
3-
using System.Diagnostics;
4-
5-
public class ConventionReportTraceRenderer : IConventionReportRenderer
6-
{
7-
public void Render(params ConventionReport[] conventionResult)
8-
{
9-
var conventionReportTextRenderer = new ConventionReportTextRenderer();
10-
conventionReportTextRenderer.Render(conventionResult);
11-
Trace.WriteLine(conventionReportTextRenderer.Output);
12-
}
13-
}
1+
namespace TestStack.ConventionTests.Internal
2+
{
3+
using System.Diagnostics;
4+
5+
public class ConventionReportTraceRenderer : IConventionReportRenderer
6+
{
7+
public void Render(params ConventionReport[] conventionResult)
8+
{
9+
var conventionReportTextRenderer = new ConventionReportTextRenderer();
10+
conventionReportTextRenderer.Render(conventionResult);
11+
Trace.WriteLine(conventionReportTextRenderer.Output);
12+
}
13+
}
1414
}

TestStack.ConventionTests/ConventionResultExceptionReporter.cs renamed to TestStack.ConventionTests/Internal/ConventionResultExceptionReporter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
namespace TestStack.ConventionTests
1+
namespace TestStack.ConventionTests.Internal
22
{
3-
using System.Diagnostics;
43
using System.Linq;
54

65
public class ConventionResultExceptionReporter : IConventionReportRenderer
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
namespace TestStack.ConventionTests
2-
{
3-
public interface ICreateReportLineFor<in T>
4-
{
5-
ConventionFailure CreateReportLine(T failingData);
6-
}
1+
namespace TestStack.ConventionTests.Internal
2+
{
3+
public interface ICreateReportLineFor<in T>
4+
{
5+
ConventionFailure CreateReportLine(T failingData);
6+
}
77
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
namespace TestStack.ConventionTests
2-
{
3-
public enum Result
4-
{
5-
Passed,
6-
Failed
7-
}
1+
namespace TestStack.ConventionTests.Internal
2+
{
3+
public enum Result
4+
{
5+
Passed,
6+
Failed
7+
}
88
}

TestStack.ConventionTests/TestStack.ConventionTests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
<Compile Include="ConventionFailedException.cs" />
6363
<Compile Include="ConventionFailure.cs" />
6464
<Compile Include="ConventionReport.cs" />
65-
<Compile Include="ConventionReportTextRenderer.cs" />
66-
<Compile Include="ConventionReportTraceRenderer.cs" />
67-
<Compile Include="ConventionResultExceptionReporter.cs" />
65+
<Compile Include="Internal\ConventionReportTextRenderer.cs" />
66+
<Compile Include="Internal\ConventionReportTraceRenderer.cs" />
67+
<Compile Include="Internal\ConventionResultExceptionReporter.cs" />
6868
<Compile Include="Conventions\ClassTypeHasSpecificNamespace.cs" />
6969
<Compile Include="Conventions\ConventionSourceInvalidException.cs" />
7070
<Compile Include="ConventionData\ProjectFile.cs" />
@@ -77,7 +77,7 @@
7777
<Compile Include="Conventions\AllClassesHaveDefaultConstructor.cs" />
7878
<Compile Include="Conventions\FilesAreEmbeddedResources.cs" />
7979
<Compile Include="IConventionReportRenderer.cs" />
80-
<Compile Include="ICreateReportLineFor.cs" />
80+
<Compile Include="Internal\ICreateReportLineFor.cs" />
8181
<Compile Include="Internal\AssemblyProjectLocator.cs" />
8282
<Compile Include="Convention.cs" />
8383
<Compile Include="IConvention.cs" />
@@ -92,7 +92,7 @@
9292
<Compile Include="Internal\ProjectProvider.cs" />
9393
<Compile Include="Properties\AssemblyInfo.cs" />
9494
<Compile Include="Internal\ReflectionExtensions.cs" />
95-
<Compile Include="Result.cs" />
95+
<Compile Include="Internal\Result.cs" />
9696
</ItemGroup>
9797
<ItemGroup>
9898
<None Include="packages.config" />

0 commit comments

Comments
 (0)