Skip to content

Commit

Permalink
Fix test case to actually check the ToString() results.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrunwald committed Jul 22, 2023
1 parent 99d5e94 commit cda7ddf
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,16 @@ static void DisposeMultipleTimes<T>(ref T mutRef, in T immutableRef) where T : s
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
}
Expand Down

0 comments on commit cda7ddf

Please sign in to comment.