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

Loading…
Cancel
Save