Siegfried Pammer
1aa36a23f2
Use test-summary/action@v1 for test reports.
3 years ago
Siegfried Pammer
e61f46c474
Add MethodCodeType argument to MethodImplAttribute.
3 years ago
Siegfried Pammer
146fd72e4f
Do not add NETCORE preproc symbol if CompilerOptions.TargetNet40 is specified.
3 years ago
Andrew Crawley (US - DIAGNOSTICS)
071ca33561
Fix file locking issue in tests
3 years ago
Andrew Crawley (US - DIAGNOSTICS)
696cbc2136
Allow user to provide ID when generating a PDB
...
This commit adds a new parameter to PortablePdbWriter.WritePdb that
allows the caller to specify the exact Guid and timestamp that should be
used in the generated PDB. This will be useful for several scenarios
that are interesting for the Visual Studio debugger's integration:
1. Generating a PDB for an assembly that was built without debug info.
The PDB writer currently fails in this case, since the input assembly
has no debug directory from which to extract the relevant info. The
debugger can provide values that will allow us to load the generated
PDB.
2. Generating a PDB for an assembly that has multiple debug directories.
The PDB writer currently uses the first debug directory it finds, but
this isn't necessarily the correct one. The debugger can provide the
correct values.
3 years ago
Siegfried Pammer
6a3bb2bbf1
Fix #2655 : TranslateArrayInitializer crashes with out of order array init
3 years ago
Siegfried Pammer
68b388bc36
Disable DecompilerSettings.ParameterNullCheck
3 years ago
Siegfried Pammer
9e462b53ad
Add support for C# 11 parameter null checks
3 years ago
Siegfried Pammer
6a27959cbc
Improve decompilation of delegate references of extension methods.
3 years ago
Siegfried Pammer
0bc11d05d3
Fix #2634 : target expressions of delegate references were not decompiled correctly
3 years ago
Siegfried Pammer
006bc18a96
Run ComInterop test case only on .NET 4.0.
3 years ago
Zachary Northrup
0921d83e0d
Add testing of overloaded methods to COM V-table test
3 years ago
Zachary Northrup
abf36b0f43
Add a unit test validating that COM V-table ordering doesn't change with mixed properties, methods, and events
3 years ago
Siegfried Pammer
c9da59bec3
Ignore pragma warning directives in CodeAssert, as the decompiler never produces these.
3 years ago
Siegfried Pammer
de5b72114e
Fix nullable and other warnings.
3 years ago
Daniel Grunwald
a9f4694563
Add test for C# 11 generic attribute
3 years ago
Siegfried Pammer
9935f51b96
Fix #2646 : Missing values for enums with skipped or duplicate items
3 years ago
Daniel Grunwald
a8dc78a10a
Now that we build the tests for .NET 6, we can include the AsyncStreams tests in the .csproj (which gives better IDE integration when editing the tests)
3 years ago
Siegfried Pammer
e05b0dcbb0
#2657 : Use the same metadata reader (same options) in all cases.
3 years ago
Siegfried Pammer
4b475cfa69
Create ILSpyX project and make the following APIs reusable:
...
- AssemblyList, AssemblyListManager, AssemblyListSnapshot
- LoadedAssembly
- LoadedPackage and friends
- PDB providers
3 years ago
Siegfried Pammer
1ee3384a05
Fix #2640 : Invalid implicit enum value for unordered items
3 years ago
Siegfried Pammer
db034d3048
Remove incomplete/wrong support for null-forgiving operator.
3 years ago
Siegfried Pammer
3c2e52854e
DetectPinnedRegions: Inline the stack-slot involved in CustomRefPinPattern so that the following ProcessPinnedRegion call can reuse existing unmanaged pointer variables instead of being forced to create a new variable.
3 years ago
Siegfried Pammer
f98012ec16
DetectPinnedRegions: Support special case where pinned pointer is unused and the compiler optimized out the StopGCTracking-conversion.
3 years ago
Siegfried Pammer
44dee6ecc2
Add additional tests for .NET 4.0
3 years ago
Siegfried Pammer
e24b901cd1
Build self-contained test runners before running tests.
3 years ago
Siegfried Pammer
00edcad849
Use .NET 4.7.2 assemblies for our type system tests.
3 years ago
Siegfried Pammer
d85759f505
Force StackTests to use 32-bit runner
3 years ago
Siegfried Pammer
9e46b9d357
Update WellKnownConstants test for net6.0
3 years ago
Christoph Wille
266ce4c779
Use ExecuteBufferedAsync from CliWrap
3 years ago
Siegfried Pammer
e4b63f7a35
- Make all tests async.
...
- Use custom test runner for correctness tests.
- Use .NET 6.0 framework for all Roslyn compiler tests.
- Disabled tests involving new string interpolation patterns.
3 years ago
Christoph Wille
52b1c49182
Tests need to be platform specific for ilasm.exe to be extracted correctly
3 years ago
Christoph Wille
b5b7396270
Fix up ics.d.tests to look like a File New/NUnit project
3 years ago
Christoph Wille
c6641d52ac
Switch to vstest.console (and go back to net6.0 for ics.d.test re:xplat)
3 years ago
Christoph Wille
76bc5a3bab
Set TFM to TargetFramework to match other unit test projects
3 years ago
Siegfried Pammer
9e54b44b11
Move ILSpy to net6.0-windows
3 years ago
Siegfried Pammer
41c99e4727
#2622 : Fix crash in ExpressionBuilder when decompiling object initializer composed of readonly properties.
3 years ago
Daniel Grunwald
7a97fdd02d
Add comment for Double_One_Div_LongMaxValue
3 years ago
Daniel Grunwald
db7d507138
Fix #2615 : Overflow check did not work reliably due to fp rounding error
3 years ago
Siegfried Pammer
4aa7f5fc38
Fix #2612 decompilation of newarr with int.MaxValue causes OOME in decompiler.
3 years ago
Siegfried Pammer
344cd61395
Update Microsoft.Build.Locator and NuGet.Protocol in ICSharpCode.Decompiler.Tests
3 years ago
Siegfried Pammer
12e586b44b
Âdd a test case for stackalloc in nested context.
3 years ago
Siegfried Pammer
a48f0d311c
Fix #2330 : Add conditional sub directory support
3 years ago
Siegfried Pammer
15f49c0079
Add basic support for abstract static members in interfaces.
3 years ago
Siegfried Pammer
ec6a9afc57
Fix #2448 : Decompiler shows some enum values as hexdecimal instead of decimal
4 years ago
Daniel Grunwald
92ee317166
Add test case for #2436
4 years ago
Siegfried Pammer
c987eb66cd
Add struct test case.
4 years ago
Siegfried Pammer
d8bb40b45b
Generate file-scoped namespace declarations, if possible.
4 years ago
Daniel Grunwald
8c508d9bbb
#2445 : Fix `1f/6f` getting printed as `355f / (678f * (float)Math.PI)`
...
Also fix inconsistent float comparisons due to JIT optimizations.
4 years ago
Daniel Grunwald
7f985757a7
Fix #2541 : Add explicit `unchecked()` around non-constant cast of constant to `nint`
4 years ago