Daniel Grunwald
72508b5777
Add test for C# 8 nullable reference types; and fix some bugs.
7 years ago
Daniel Grunwald
3fac3c07a2
Upgrade Roslyn for tests to 3.0.0-beta3.
Remove the committed .il files: these were originally intended to prevent test failures due to differences in the C# compiler on the system.
But legacy csc stopped changing long ago; and roslyn is tested via NuGet package, so everyone is using the same version.
Interestingly enough, avoiding the roundtrip through ildasm/ilasm caused some test failures due to changes in the order of top-level types.
So I've started sorting the types by name to ensure consistency in the tests. This required adjusting some existing tests.
7 years ago
Daniel Grunwald
b7b697ff03
Only reference Microsoft.VisualBasic.dll in VB-related tests.
This fixes compiling CustomAttributeConflicts.cs with legacy csc.
7 years ago
Daniel Grunwald
c1f2ccf24f
Update "How to build" in readme.
7 years ago
Daniel Grunwald
2f35374d7d
Support "where T : unmanaged" constraints.
7 years ago
Siegfried Pammer
5c76b66a20
Add netstandard.dll to Roslyn defaultReferences.
7 years ago
Siegfried Pammer
8f635543f8
Emit correct PDB filename in test case.
7 years ago
Siegfried Pammer
b14c05803f
Fix HelloWorld PDBGen testcase: use Release configuration in test.
7 years ago
Siegfried Pammer
b4c376d195
Ignore document checksum and blob length in PdbGenerationTestRunner
7 years ago
Siegfried Pammer
25c757b7cd
Add first attempt at PdbGenerationTestRunner.
7 years ago
Daniel Grunwald
0c0ac6ea44
Add RunVB() for VB correctness tests
7 years ago
Siegfried Pammer
00194f8c03
Fix unit tests.
7 years ago
Siegfried Pammer
76cfa6fda4
Add System.Memory types to Roslyn test environment.
7 years ago
Daniel Grunwald
ab157b2fc0
Add TypeSystemOptions.Uncached.
7 years ago
Daniel Grunwald
1f3916d554
Use the resolve methods in MetadataModule, and remove the wrappers in DecompilerTypeSystem.
7 years ago
Siegfried Pammer
ce855885b1
Implement new declsec parser in ReflectionDisassembler + added unit tests.
7 years ago
Siegfried Pammer
bcfb3742eb
Clean up PEFile, move Pdb related types to DebugInfo namespace
7 years ago
Siegfried Pammer
8cbf724901
Move CustomAttributeTests to PrettyTestRunner
7 years ago
Andreas Weizel
16b00bfabc
Added DynamicTests.
7 years ago
Siegfried Pammer
458f448fae
Avoid unnecessary allocations of MetadataReader and clean up Dom structs a bit.
7 years ago
Daniel Grunwald
395bc185a3
Decompile TupleElementNamesAttribute into tuple type syntax.
7 years ago
Siegfried Pammer
d5f7cd46fc
Simplify PEFile API
7 years ago
Daniel Grunwald
f290d81535
Fix ReflectionDisassembler so that we can re-generate the IL files for the PInvoke test.
7 years ago
Daniel Grunwald
d87820e226
Avoid redundant explicit boxing casts
7 years ago
Siegfried Pammer
79b5048fdc
Fix bugs in testing infrastructure
7 years ago
Siegfried Pammer
e3ba9ba55c
Use PEFile to store a reference to the stream containing the loaded assembly.
7 years ago
Siegfried Pammer
95d256e875
Fix Tester.DecompileCSharp
7 years ago
Daniel Grunwald
f386d0b9d1
Filter out a bunch of non-determinism from the generated pretty test IL files.
7 years ago
Daniel Grunwald
80d3deb1ae
Regenerate test cases with Roslyn 2.7.
7 years ago
Siegfried Pammer
cb37cfddb5
Add minimal pretty tests for ref structs.
8 years ago
Daniel Grunwald
8a589b2fd2
Add DecompilerSettings constructor that takes a language version.
8 years ago
Siegfried Pammer
a957163aa3
Fix unit tests
8 years ago
Siegfried Pammer
7f210b585a
Rename CompilerOptions to CSharpCompilerOptions and add Tester.CompileVB
8 years ago
Daniel Grunwald
d9a28314f9
Upgrade to NUnit 3.9 and enable parallel test execution.
8 years ago
Daniel Grunwald
3fae36dab9
Use mcs for correctness tests.
8 years ago
Siegfried Pammer
97b7089aa7
Add CompilerOptions.UseMcs to Tester
8 years ago
Siegfried Pammer
cb9787098f
Finished port of UI (Analyzers still excluded) and Disassembler
8 years ago
Daniel Grunwald
228419b4f0
Fix interaction of ?. with using-transform.
8 years ago
Kirill Osenkov
5c32fbf9dd
Add a unit-test for CreateSequencePoints
8 years ago
Siegfried Pammer
02b7dc98be
Commit of non-compiling WIP
8 years ago
Siegfried Pammer
454f512929
Tests: Set Roslyn language version to latest
8 years ago
Siegfried Pammer
2759b27a0f
Add System.Xml.dll to unit test references
8 years ago
Siegfried Pammer
68357655b4
Add RemovedDeadCode = true to F# ILPretty tests
8 years ago
Daniel Grunwald
e813ebcc03
Adjust Loops test.
8 years ago
Daniel Grunwald
06227f280c
Add StackTypes.il
8 years ago
Daniel Grunwald
462d0da7b6
Add feature to the MethodBodyDisassembler that shows sequence points from PDB in disassembled IL.
8 years ago
Daniel Grunwald
4d755a7ccf
Put generated test assemblies in same folder as test cases, instead of %TMP%
This makes it easier to open them in ILSpy for debugging.
8 years ago
Daniel Grunwald
260d303b8e
Restore P/Invoke test.
8 years ago
Siegfried Pammer
e26af08a1c
Move test projects to their own directory in \
8 years ago
Daniel Grunwald
7277de6c08
More fixes for yield return decompilation.
8 years ago