Skip to content

Commit be7b3e6

Browse files
committed
Fix SA1116 diagnostics
1 parent 0f33261 commit be7b3e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/UnitTests/MSTestAdapter.PlatformServices.UnitTests/Execution/TestClassInfoTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ public void RunClassCleanupShouldReturnAssertFailureExceptionDetails()
489489
Verify(classCleanupException is not null);
490490
Verify(classCleanupException.Message.StartsWith("Class Cleanup method DummyTestClass.ClassCleanupMethod failed.", StringComparison.Ordinal));
491491
Verify(classCleanupException.Message.Contains("Error Message: Assert.Fail failed. Test Failure."));
492-
Verify(classCleanupException.Message.Contains(
493-
$"{typeof(TestClassInfoTests).FullName}.<>c.<{nameof(this.RunClassCleanupShouldReturnAssertFailureExceptionDetails)}>"),
492+
Verify(
493+
classCleanupException.Message.Contains($"{typeof(TestClassInfoTests).FullName}.<>c.<{nameof(this.RunClassCleanupShouldReturnAssertFailureExceptionDetails)}>"),
494494
$"Value: {classCleanupException.Message}");
495495
}
496496

@@ -508,8 +508,8 @@ public void RunClassCleanupShouldReturnAssertInconclusiveExceptionDetails()
508508
Verify(classCleanupException is not null);
509509
Verify(classCleanupException.Message.StartsWith("Class Cleanup method DummyTestClass.ClassCleanupMethod failed.", StringComparison.Ordinal));
510510
Verify(classCleanupException.Message.Contains("Error Message: Assert.Inconclusive failed. Test Inconclusive."));
511-
Verify(classCleanupException.Message.Contains(
512-
$"{typeof(TestClassInfoTests).FullName}.<>c.<{nameof(this.RunClassCleanupShouldReturnAssertInconclusiveExceptionDetails)}>"),
511+
Verify(
512+
classCleanupException.Message.Contains($"{typeof(TestClassInfoTests).FullName}.<>c.<{nameof(this.RunClassCleanupShouldReturnAssertInconclusiveExceptionDetails)}>"),
513513
$"Value: {classCleanupException.Message}");
514514
}
515515

0 commit comments

Comments
 (0)