Skip to content

Commit 2433097

Browse files
committed
cleanup
1 parent b0f882c commit 2433097

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

src/Delta.EFTests/LocalDbTestBase.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,12 @@ public Task<SqlDatabase<SampleDbContext>> LocalDb(string? suffix = null) =>
1818
static string GetName(string? suffix)
1919
{
2020
var test = TestContext.CurrentContext.Test;
21-
var methodName = test.MethodName!;
21+
var method = test.MethodName!;
2222
var arguments = string.Join(
2323
' ',
2424
test.Arguments.Select(VerifierSettings.GetNameForParameter));
2525

26-
if (suffix == null)
27-
{
28-
return $"{test.MethodName}_{arguments}_{suffix}";
29-
}
30-
31-
return $"{methodName}_{arguments}_{suffix}";
26+
return $"{method}_{arguments}_{suffix}";
3227
}
3328

3429
string testFile;

src/DeltaTests/LocalDbTestBase.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,12 @@ public Task<SqlDatabase> LocalDb(string? suffix = null) =>
2121
static string GetName(string? suffix)
2222
{
2323
var test = TestContext.CurrentContext.Test;
24-
var methodName = test.MethodName!;
24+
var method = test.MethodName!;
2525
var arguments = string.Join(
2626
' ',
2727
test.Arguments.Select(VerifierSettings.GetNameForParameter));
2828

29-
if (suffix == null)
30-
{
31-
return $"{test.MethodName}_{arguments}_{suffix}";
32-
}
33-
34-
return $"{methodName}_{arguments}_{suffix}";
29+
return $"{method}_{arguments}_{suffix}";
3530
}
3631

3732
string testFile;

0 commit comments

Comments
 (0)