Siegfried Pammer
1fb4acfc3d
Build ICSharpCode.Decompiler.Tests + the format hook cross-platform
...
Decompiler.Tests targeted net11.0-windows only because
Microsoft.DiaSymReader.Native is Win-only and Tester.cs hardcoded ilasm.exe
/ ildasm.exe filenames. Both are narrow problems: gate the Native package
to Windows, replace the ".exe" suffix with an OS-aware helper, and drop
the -windows TFM. The Microsoft.NETCore.IL{,D}Asm metapackages' RID graph
already ships ilasm/ildasm for linux + osx via per-RID runtime sub-packages
when RuntimeIdentifier resolves dynamically, so the tool just lands in the
test output dir with the right suffix on every host.
Windows-only test fixtures (RoundtripAssembly + the RunWithTestRunner,
SignAssembly, FindMSBuild call sites) gate via Assert.Ignore +
[Platform("Win")] so they skip on non-Windows instead of failing. CA1416
joins NoWarn -- the analyzer can't see the runtime guards, and the test
inputs (Console.CapsLock, Registry access) are decompilation targets, not
infrastructure.
BuildTools/pre-commit learns to find dotnet-format on non-Windows (XDG
basedir + no .exe suffix) so the hook can run wherever the build now does.
Assisted-by: Claude:claude-opus-4-7:Claude Code
4 weeks ago
Peter Crabtree
e1e16b64f5
dev: Strip BOM mark from text files
10 months ago
Siegfried Pammer
1c71f6ad46
Support concatenation involving arguments of type ReadOnlySpan<char>.
2 years ago
Daniel Grunwald
1616d15572
Move roundtrip tests to their own namespace.
...
This makes it easier to run the fast non-roundtrip tests.
2 years ago
Siegfried Pammer
963ff7cb3d
Fix #3151 : Make IProjectFileWriter API public
2 years ago
Christoph Wille
fba0dbae8d
Migrate to NUnit 4 ( #3132 )
...
* Migrate to NUnit 4 based on https://docs.nunit.org/articles/nunit/release-notes/Nunit4.0-MigrationGuide.html . Needed fix for https://github.com/nunit/nunit/issues/4564
* Test 4.1.0-adev.1 from NUnit MyGet feed (works locally in VS)
* Update to bugfix version adev.2 (works on GH)
* NUnit 4.0.1 final
3 years ago
Siegfried Pammer
e05b0dcbb0
#2657 : Use the same metadata reader (same options) in all cases.
4 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.
4 years ago
Daniel Grunwald
7f985757a7
Fix #2541 : Add explicit `unchecked()` around non-constant cast of constant to `nint`
5 years ago
Siegfried Pammer
7418cc3c5f
Ignore failing tests
5 years ago
Siegfried Pammer
30f9a82fbe
Add Roslyn 3.11.0 as separate test configuration. Update RoslynLatest to 4.0.0. Use LanguageVersion.CSharp9_0 instead of Preview. Add LanguageVersion.CSharp10_0.
5 years ago
Daniel Grunwald
0de6238d65
Support resolving assembly references within a bundle.
6 years ago
dotnet format
0d9f871a4f
#2128 : Reformat the whole code base.
6 years ago
Daniel Grunwald
5a8cfc25ba
Add some tests for native integers.
...
The conversion roundtrip tests are disabled due to https://github.com/dotnet/roslyn/issues/45929
6 years ago
dymanoid
bfb57da93b
Implement project writer for SDK style projects
6 years ago
dymanoid
b492a20442
Move assembly resolution logic to better place
...
WholeProjectDecompiler shall not care about checking whether an assembly
is in GAC.
6 years ago
dymanoid
a952cda502
Create dedicated namespace for project decompiler
6 years ago
Siegfried Pammer
4bc7feadbf
Fix #1734 : Do not roundtrip ICSharpCode.Decompiler test-case.
7 years ago
Siegfried Pammer
e1bc205d3a
Add support for strong-name keys in WholeProjectDecompiler and RoundtripAssembly tests.
7 years ago
Siegfried Pammer
f3f38783df
ICSharpCode.Decompiler roundtrip test now completes
7 years ago
Siegfried Pammer
6f98ed5415
Fix unit tests.
7 years ago
Siegfried Pammer
8869f6921b
Reenable test Cecil_net45
7 years ago
Oren Novotny
366e0dbfe3
Latest version of VS first
7 years ago
Oren Novotny
c9b58deaac
Skip failing test on 2019 for now
7 years ago
Oren Novotny
d0d0e9953a
Use MSBuild locator API to find MSBuild. Fixes VS 2019 issue.
7 years ago
Daniel Grunwald
fc6cef7081
Fix roundtrip tests.
7 years ago
Siegfried Pammer
3377e93628
Add LangVersion support to WholeProjectDecompiler and add NonTrailingNamedArguments setting.
8 years ago
Siegfried Pammer
bcfb3742eb
Clean up PEFile, move Pdb related types to DebugInfo namespace
8 years ago
Siegfried Pammer
10a0c9093c
Do not convert extension method syntax to LINQ, if the null conditional operator is used on the target, as this introduces a syntax error.
8 years ago
Siegfried Pammer
8cbf724901
Move CustomAttributeTests to PrettyTestRunner
8 years ago
Siegfried Pammer
d5f7cd46fc
Simplify PEFile API
8 years ago
Siegfried Pammer
79b5048fdc
Fix bugs in testing infrastructure
8 years ago
Siegfried Pammer
e3ba9ba55c
Use PEFile to store a reference to the stream containing the loaded assembly.
8 years ago
Siegfried Pammer
4f392538fb
Port test infrastructure
8 years ago
Daniel Grunwald
d9a28314f9
Upgrade to NUnit 3.9 and enable parallel test execution.
8 years ago
Daniel Grunwald
0df2c91d79
Update ILSpy-tests submodule for updated ICSharpCode.Decompiler.dll.
9 years ago
Daniel Grunwald
905cb0f388
Split PrettifyAssignments pass out from ReplaceMethodCallsWithOperators and fix pass ordering.
...
This simplifies the code; and fixes the assertion during NewtonsoftJson_pcl_debug decompilation.
9 years ago
Siegfried Pammer
43977c640c
Update RoundtripAssembly tests
9 years ago
Daniel Grunwald
e024641a5f
[async] Fix bug when async method uses this pointer.
9 years ago
Sam Harwell
4908b129f8
Convert projects to the new project system
9 years ago
Siegfried Pammer
e26af08a1c
Move test projects to their own directory in \
9 years ago
Daniel Grunwald
f411d15fc6
Fix generating switch sections without any case labels.
9 years ago
Siegfried Pammer
1237e23b37
Remove "." directory from assembly resolver in RoundtripAssembly
9 years ago
Siegfried Pammer
6301f81abb
Temporarily disable ICSharpCode.Decompiler roundtrip test
9 years ago
Siegfried Pammer
7312654813
Rewrite of TransformCollectionAndObjectInitializers
9 years ago
Daniel Grunwald
fe84ea9730
WIP: yield return decompiler
10 years ago
Daniel Grunwald
e871f7c05a
Convert LoopDetection into a block transform.
10 years ago
Daniel Grunwald
b3590ec292
Update cecil.
10 years ago
Siegfried Pammer
f6c60a6223
Add roundtrip test case for ICSharpCode.Decompiler and pretty tests for Async and YieldReturn
10 years ago
Siegfried Pammer
a8cdfc3d28
NRefactory_CSharp roundtrip works! :)
10 years ago