Browse Source

Fix test case to actually check the ToString() results.

pull/3041/head
Daniel Grunwald 2 years ago
parent
commit
cda7ddff48
  1. 16
      ICSharpCode.Decompiler.Tests/TestCases/Correctness/ValueTypeCall.cs

16
ICSharpCode.Decompiler.Tests/TestCases/Correctness/ValueTypeCall.cs

@ -238,16 +238,16 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
static void ToStringGeneric<T>(ref T mutRef, in T immutableRef) where T : struct static void ToStringGeneric<T>(ref T mutRef, in T immutableRef) where T : struct
{ {
Console.WriteLine("ToStringGeneric:"); Console.WriteLine("ToStringGeneric:");
mutRef.ToString(); Console.WriteLine(mutRef.ToString());
mutRef.ToString(); Console.WriteLine(mutRef.ToString());
T copyFromMut = mutRef; T copyFromMut = mutRef;
copyFromMut.ToString(); Console.WriteLine(copyFromMut.ToString());
immutableRef.ToString(); Console.WriteLine(immutableRef.ToString());
immutableRef.ToString(); Console.WriteLine(immutableRef.ToString());
T copyFromImmutable = immutableRef; T copyFromImmutable = immutableRef;
copyFromImmutable.ToString(); Console.WriteLine(copyFromImmutable.ToString());
mutRef.ToString(); Console.WriteLine(mutRef.ToString());
immutableRef.ToString(); Console.WriteLine(immutableRef.ToString());
} }
#endif #endif
} }

Loading…
Cancel
Save