Skip to content

Commit 4839d27

Browse files
authored
Fix assert message with errant text pasted in (#120574)
1 parent 9833f60 commit 4839d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Runtime.Loader/tests/ApplyUpdateTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ internal static Type CheckReflectedType(Assembly assm, Type[] allTypes, string n
741741
if (nestedIdx != -1)
742742
comparisonName = typeName.Substring(nestedIdx+1);
743743
Assert.True(comparisonName == ty.Name, $"{callerFilePath}:{callerLineNumber}: returned type has unexpected name '{ty.Name}' (expected: '{comparisonName}') in {callerMemberName}");
744-
Assert.True(ContainsTypeWithName (allTypes, fullName), $"{callerFilePath}:{callerLineNumber}: expected Assembly.GetTypes to contain '{fullName}', but it didn'type_ReflectionDeleteMember in {callerMemberName}");
744+
Assert.True(ContainsTypeWithName (allTypes, fullName), $"{callerFilePath}:{callerLineNumber}: expected Assembly.GetTypes to contain '{fullName}', but it didn't in {callerMemberName}");
745745
if (moreChecks != null)
746746
moreChecks(ty);
747747
return ty;

0 commit comments

Comments
 (0)