Skip to content

Commit cee1953

Browse files
committed
unified parameters in symmetric convention method
1 parent 603f628 commit cee1953

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

TestStack.ConventionTests/IConventionResult.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ public interface IConventionResult
1414
/// and if a non-dto is in Project.Dto the test will also fail
1515
/// </summary>
1616
/// <typeparam name="TResult">The data type the convention is applied to</typeparam>
17-
/// <param name="conventionResultTitle">Title of the convention, i.e Dto's must live in Project.Dto namespace</param>
18-
/// <param name="conventionFailingData">Data failing to conform to the convention</param>
19-
/// <param name="inverseResultTitle">The inverse scenario title, i.e Non-dtos must not live inside Project.Dto namespace</param>
20-
/// <param name="inverseFailingData">Data failing to conform to the inverse of the convention</param>
17+
/// <param name="firstSetFailureTitle">Title of the convention, i.e Dto's must live in Project.Dto namespace</param>
18+
/// <param name="firstSetFailureData">Data failing to conform to the convention</param>
19+
/// <param name="secondSetFailureTitle">The inverse scenario title, i.e Non-dtos must not live inside Project.Dto namespace</param>
20+
/// <param name="secondSetFailureData">Data failing to conform to the inverse of the convention</param>
2121
void IsSymmetric<TResult>(
22-
string conventionResultTitle, IEnumerable<TResult> conventionFailingData,
23-
string inverseResultTitle, IEnumerable<TResult> inverseFailingData);
22+
string firstSetFailureTitle, IEnumerable<TResult> firstSetFailureData,
23+
string secondSetFailureTitle, IEnumerable<TResult> secondSetFailureData);
2424

2525
/// <summary>
2626
/// A symmetric convention is a convention which also can be applied in reverse. For example

TestStack.ConventionTests/Internal/ConventionResult.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ public void Is<T>(string resultTitle, IEnumerable<T> failingData)
3232
}
3333

3434
public void IsSymmetric<TResult>(
35-
string conventionResultTitle, IEnumerable<TResult> conventionFailingData,
36-
string inverseResultTitle, IEnumerable<TResult> inverseFailingData)
35+
string firstSetFailureTitle, IEnumerable<TResult> firstSetFailureData,
36+
string secondSetFailureTitle, IEnumerable<TResult> secondSetFailureData)
3737
{
3838
conventionResults.Add(new ResultInfo(
39-
conventionFailingData.None() ? TestResult.Passed : TestResult.Failed,
40-
conventionResultTitle,
39+
firstSetFailureData.None() ? TestResult.Passed : TestResult.Failed,
40+
firstSetFailureTitle,
4141
dataDescription,
42-
conventionFailingData.Select(FormatData).ToArray()));
42+
firstSetFailureData.Select(FormatData).ToArray()));
4343
conventionResults.Add(new ResultInfo(
44-
inverseFailingData.None() ? TestResult.Passed : TestResult.Failed,
45-
inverseResultTitle,
44+
secondSetFailureData.None() ? TestResult.Passed : TestResult.Failed,
45+
secondSetFailureTitle,
4646
dataDescription,
47-
inverseFailingData.Select(FormatData).ToArray()));
47+
secondSetFailureData.Select(FormatData).ToArray()));
4848
}
4949

5050
public void IsSymmetric<TResult>(

0 commit comments

Comments
 (0)