Skip to content

Commit 4c35ed9

Browse files
committed
Pulled Approve method to base type
This is a generic-use method and it belongs in the base type. Windsor tests will be using it too.
1 parent 85914d8 commit 4c35ed9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

ConventionTests/ConventionTests.NUnit.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ public virtual string Name
8181
}
8282

8383
public abstract void Execute();
84+
85+
protected void Approve(string message)
86+
{
87+
Approvals.Verify(new ApprovalTextWriter(message), new ConventionTestNamer(GetType().Name),
88+
Approvals.GetReporter());
89+
}
8490
}
8591

8692
/// <summary>
@@ -131,12 +137,6 @@ protected virtual Assembly[] GetAssembliesToScan(ConventionData data)
131137
/// <returns> </returns>
132138
protected abstract ConventionData SetUp();
133139

134-
private void Approve(string message)
135-
{
136-
Approvals.Verify(new ApprovalTextWriter(message), new ConventionTestNamer(GetType().Name),
137-
Approvals.GetReporter());
138-
}
139-
140140
protected virtual Type[] GetTypesToTest(ConventionData data)
141141
{
142142
return

0 commit comments

Comments
 (0)