.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Siegfried Pammer a813dddc01 Add basic compound assignment test 9 years ago
..
CompoundAssignmentTest.cs Add basic compound assignment test 9 years ago
CompoundAssignmentTest.il Add basic compound assignment test 9 years ago
HelloWorld.cs Add TransformInlineAssignment and InlineAssignmentTest 9 years ago
HelloWorld.il Add TransformInlineAssignment and InlineAssignmentTest 9 years ago
InlineAssignmentTest.cs Improve TransformInlineAssignment 9 years ago
InlineAssignmentTest.il Add basic compound assignment test 9 years ago
Readme.txt Reorganize TestRunner-Tests 9 years ago

Readme.txt

The files in this folder are prettiness tests for the decompiler.

The NUnit class running these tests is ../PrettyTestRunner.cs.
It uses pre-defined IL files in order to avoid test failures in cause of compiler changes.
We test different C# compiler versions as well (in future).

Each test consists of a C# file for comparing the resulting code and a source IL file used for assembling/decompiling.

We:
* assemble a test case (call the result "executable 1")
* decompile "executable 1" to C# ("decompiled.cs")
* compare "decompiled.cs" to "source.cs"

The tests pass if the code looks exactly the same as the input code, ignoring comments, empty lines and preprocessor directives.