.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 d45e3bfb3c Fix assertion fail in DeclareVariables: Make sure that we do not try to declare variables in non-assignment contexts. 8 years ago
..
Async.cs Split Async tests 8 years ago
BitNot.il Move test projects to their own directory in \ 8 years ago
Capturing.cs Move test projects to their own directory in \ 8 years ago
Comparisons.cs Move test projects to their own directory in \ 8 years ago
CompoundAssignment.cs Move test projects to their own directory in \ 8 years ago
ConditionalAttr.cs Move test projects to their own directory in \ 8 years ago
ControlFlow.cs Move NotUsingBlock test. 8 years ago
Conversions.cs Move test projects to their own directory in \ 8 years ago
DecimalFields.cs Move test projects to their own directory in \ 8 years ago
Generics.cs Move test projects to their own directory in \ 8 years ago
HelloWorld.cs Move test projects to their own directory in \ 8 years ago
InitializerTests.cs Fix #855 - ArgumentOutOfRangeException in TransformCollectionAndObjectInitializers.DoTransform 8 years ago
MemberLookup.cs Move test projects to their own directory in \ 8 years ago
NullableTests.cs [nullables] Fix nullable transform being applied incorrectly. 8 years ago
OverloadResolution.cs Add overload resolution for ctor calls. 8 years ago
Patterns.cs Fix assertion fail in DeclareVariables: Make sure that we do not try to declare variables in non-assignment contexts. 8 years ago
PropertiesAndEvents.cs Move test projects to their own directory in \ 8 years ago
Readme.txt Move test projects to their own directory in \ 8 years ago
Switch.cs Move test projects to their own directory in \ 8 years ago
TrickyTypes.cs Replace spaces with tabs. 8 years ago
UndocumentedExpressions.cs Update tests (remove unnecessary casts) 8 years ago
UnsafeCode.cs Move test projects to their own directory in \ 8 years ago
ValueTypeCall.cs Move test projects to their own directory in \ 8 years ago
YieldReturn.cs Move test projects to their own directory in \ 8 years ago

Readme.txt

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

The NUnit class running these tests is ../../CorrectnessTestRunner.cs.

We:
* compile/assemble a test case (call the result "executable 1")
* decompile "executable 1" to C# ("decompiled.cs")
* compile decompiled.cs, resulting in "executable 2"
* run both executable and compare their output (exit code, stdout, stderr)

We repeat the steps above with a few different compiler options (/o+ or not; /debug or not).

The tests pass if the code compiles without error and produces the same output.
The tests do not care at all if the resulting code is pretty, or if any high-level constructs like closures were detected.