-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moved CodeGen/EmittedIL/Mutation over to NUnit #7352
Conversation
Updated 08/08: New IL is generated with
Everything is OK now. |
This PR is ready for review. |
@sergey-tihon the difference in the il between the original and your port is because, the original tests were compiled with optimization disabled. Whereas the
|
Thank you @KevinRansom I'll take a look how to do |
@sergey-tihon probably just add a func: |
I've added Please look at my previous comment |
@sergey-tihon :
|
@KevinRansom Thank you, my bad. I have tried The only question is the IL from first test, I've updated original comment with new IL. |
I found the issue, IL was different because I changed
to
when was not able to compile source with warnings. Everything should be OK now. Expected IL should match IL from |
Thanks! |
* raw code-gen Mutable tests copy-paste * Allow to use code snippets with warnings in tests * Replace random/temp assembly name by `asmName` in generated IL * map `System.Runtime` types to `mscorlib` for .NET Core tests * allow to use IL from full framework and .net core as `expected IL` * remove old tests * Different error messages for `not found` expected IL and not `not fully found` IL * CompilerAssert.CompileLibraryAndVerifyILWithOptions and expected IL update * Added `-g` option * Reverted back unused variable
part of #7075
TODO:
<StartupCode$Mutation02>
vs<StartupCode$tmpF1A6>
)expected IL
in test should be runtime independent,[mscorlib]System.Object
vs[System.Runtime]System.Object
)