|
|
|
@ -26,6 +26,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
@@ -26,6 +26,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
|
|
|
|
|
{ |
|
|
|
|
InterestingConstants(); |
|
|
|
|
TruncatedComp(); |
|
|
|
|
StringConcat(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void Print<T>(T val) |
|
|
|
@ -92,5 +93,13 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
@@ -92,5 +93,13 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
|
|
|
|
|
Print(val1 <= val2); |
|
|
|
|
Print((int)val1 <= val2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void StringConcat() |
|
|
|
|
{ |
|
|
|
|
// Some string.Concat()-cases that cannot be replaced using operator+
|
|
|
|
|
Print(string.Concat("String concat:")); |
|
|
|
|
Print(string.Concat(1, 2)); |
|
|
|
|
Print(string.Concat(1, 2, "str")); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|