.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 c34541ad4c Implement catch-when and remove local copy of exception slot. 8 years ago
..
.gitignore Move test projects to their own directory in \ 8 years ago
AnonymousTypes.cs Update tests (remove unnecessary casts) 8 years ago
AnonymousTypes.il Update tests (remove unnecessary casts) 8 years ago
AnonymousTypes.opt.il Update tests (remove unnecessary casts) 8 years ago
Async.cs Split Async tests 8 years ago
Async.il Split Async tests 8 years ago
Async.opt.il Split Async tests 8 years ago
Async.opt.roslyn.il Split Async tests 8 years ago
Async.roslyn.il Split Async tests 8 years ago
AutoProperties.cs Move test projects to their own directory in \ 8 years ago
AutoProperties.opt.roslyn.il Move test projects to their own directory in \ 8 years ago
AutoProperties.roslyn.il Move test projects to their own directory in \ 8 years ago
CheckedUnchecked.cs Add back CheckedUnchecked test case. 8 years ago
CheckedUnchecked.il Add back CheckedUnchecked test case. 8 years ago
CheckedUnchecked.opt.il Add back CheckedUnchecked test case. 8 years ago
CheckedUnchecked.opt.roslyn.il Add back CheckedUnchecked test case. 8 years ago
CheckedUnchecked.roslyn.il Add back CheckedUnchecked test case. 8 years ago
CompoundAssignmentTest.cs Convert integers to char literals in comparisons with char operands. 8 years ago
CompoundAssignmentTest.il Convert integers to char literals in comparisons with char operands. 8 years ago
CompoundAssignmentTest.opt.il Convert integers to char literals in comparisons with char operands. 8 years ago
CompoundAssignmentTest.opt.roslyn.il Convert integers to char literals in comparisons with char operands. 8 years ago
CompoundAssignmentTest.roslyn.il Convert integers to char literals in comparisons with char operands. 8 years ago
ExceptionHandling.cs Move test projects to their own directory in \ 8 years ago
ExceptionHandling.il Implement catch-when and remove local copy of exception slot. 8 years ago
ExceptionHandling.opt.il Implement catch-when and remove local copy of exception slot. 8 years ago
ExceptionHandling.opt.roslyn.il Implement catch-when and remove local copy of exception slot. 8 years ago
ExceptionHandling.roslyn.il Implement catch-when and remove local copy of exception slot. 8 years ago
HelloWorld.cs Move test projects to their own directory in \ 8 years ago
HelloWorld.il Move test projects to their own directory in \ 8 years ago
InlineAssignmentTest.cs Update tests (remove unnecessary casts) 8 years ago
InlineAssignmentTest.il Move test projects to their own directory in \ 8 years ago
InlineAssignmentTest.opt.il Move test projects to their own directory in \ 8 years ago
LiftedOperators.cs Move test projects to their own directory in \ 8 years ago
Loops.cs Move test projects to their own directory in \ 8 years ago
PInvoke.cs Restore P/Invoke test. 8 years ago
PInvoke.il Restore P/Invoke test. 8 years ago
PInvoke.opt.il Restore P/Invoke test. 8 years ago
PInvoke.opt.roslyn.il Restore P/Invoke test. 8 years ago
PInvoke.roslyn.il Restore P/Invoke test. 8 years ago
PropertiesAndEvents.cs Move test projects to their own directory in \ 8 years ago
PropertiesAndEvents.il Split Async tests 8 years ago
PropertiesAndEvents.opt.il Split Async tests 8 years ago
PropertiesAndEvents.opt.roslyn.il Split Async tests 8 years ago
PropertiesAndEvents.roslyn.il Split Async tests 8 years ago
QueryExpressions.cs Reimplement IntroduceQueryExpressions and CombineQueryExpressions 8 years ago
QueryExpressions.il Reimplement IntroduceQueryExpressions and CombineQueryExpressions 8 years ago
QueryExpressions.opt.il Reimplement IntroduceQueryExpressions and CombineQueryExpressions 8 years ago
QueryExpressions.opt.roslyn.il Reimplement IntroduceQueryExpressions and CombineQueryExpressions 8 years ago
QueryExpressions.roslyn.il Reimplement IntroduceQueryExpressions and CombineQueryExpressions 8 years ago
Readme.txt Move test projects to their own directory in \ 8 years ago
ShortCircuit.cs Move test projects to their own directory in \ 8 years ago
ShortCircuit.il Move test projects to their own directory in \ 8 years ago
ShortCircuit.opt.il Move test projects to their own directory in \ 8 years ago
ShortCircuit.opt.roslyn.il Move test projects to their own directory in \ 8 years ago
ShortCircuit.roslyn.il Move test projects to their own directory in \ 8 years ago
TypeAnalysisTests.cs Restore P/Invoke test. 8 years ago
TypeAnalysisTests.il Restore P/Invoke test. 8 years ago
TypeAnalysisTests.opt.il Restore P/Invoke test. 8 years ago
TypeAnalysisTests.opt.roslyn.il Restore P/Invoke test. 8 years ago
TypeAnalysisTests.roslyn.il Restore P/Invoke test. 8 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.

Note: If you delete an .il file, it will be re-created on the next test run.
This can be helpful when modifying the test case; but it also might have unexpected results when your C# compiler differs
from the compiler previously used to create the .il file.