Skip to content

Commit

Permalink
Fix Typo in test failure warning (#2660)
Browse files Browse the repository at this point in the history
Changes "ExpectedWarning" to "ExpectedNoWarnings"
  • Loading branch information
jtschuster authored Feb 25, 2022
1 parent 0cb8b9d commit 45b481f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ void VerifyLoggedMessages (AssemblyDefinition original, LinkerTestLogger logger,
foreach ((var attrProvider, var attr) in expectedNoWarningsAttributes) {
var unexpectedWarningCode = attr.ConstructorArguments.Count == 0 ? null : (string) attr.GetConstructorArgumentValue (0);
if (unexpectedWarningCode != null && !unexpectedWarningCode.StartsWith ("IL")) {
Assert.Fail ($"The warning code specified in ExpectedWarning attribute must start with the 'IL' prefix. Specified value: '{unexpectedWarningCode}'.");
Assert.Fail ($"The warning code specified in ExpectedNoWarnings attribute must start with the 'IL' prefix. Specified value: '{unexpectedWarningCode}'.");
}

int? unexpectedWarningCodeNumber = unexpectedWarningCode == null ? null : int.Parse (unexpectedWarningCode.Substring (2));
Expand Down

0 comments on commit 45b481f

Please sign in to comment.