@@ -587,12 +587,12 @@ public void GetILCodeVersions_SyntheticAndExplicit(MockTarget.Architecture arch)
587
587
Assert . Equal ( 2 , ilCodeVersions . Count ) ;
588
588
589
589
// Get the explicit ILCodeVersion and assert that it is in the list of ILCodeVersions
590
- ILCodeVersionHandle explicitILcodeVersion = codeVersions . GetActiveILCodeVersion ( methodDescAddress ) ;
591
- Assert . Contains ( ilCodeVersions , ilcodeVersion => ilcodeVersion . Equals ( explicitILcodeVersion ) ) ;
592
- Assert . Equal ( expectedExplicitCodePointer , codeVersions . GetNativeCode ( codeVersions . GetActiveNativeCodeVersionForILCodeVersion ( methodDescAddress , explicitILcodeVersion ) ) ) ;
590
+ ILCodeVersionHandle explicitILCodeVersion = codeVersions . GetActiveILCodeVersion ( methodDescAddress ) ;
591
+ Assert . Contains ( ilCodeVersions , ilcodeVersion => ilcodeVersion . Equals ( explicitILCodeVersion ) ) ;
592
+ Assert . Equal ( expectedExplicitCodePointer , codeVersions . GetNativeCode ( codeVersions . GetActiveNativeCodeVersionForILCodeVersion ( methodDescAddress , explicitILCodeVersion ) ) ) ;
593
593
594
594
// Find the other ILCodeVersion (synthetic) and assert that it is valid.
595
- ILCodeVersionHandle syntheticILcodeVersion = ilCodeVersions . Find ( ilCodeVersion => ! ilCodeVersion . Equals ( explicitILcodeVersion ) ) ;
595
+ ILCodeVersionHandle syntheticILcodeVersion = ilCodeVersions . Find ( ilCodeVersion => ! ilCodeVersion . Equals ( explicitILCodeVersion ) ) ;
596
596
Assert . True ( syntheticILcodeVersion . IsValid ) ;
597
597
Assert . Equal ( expectedSyntheticCodePointer , codeVersions . GetNativeCode ( codeVersions . GetActiveNativeCodeVersionForILCodeVersion ( methodDescAddress , syntheticILcodeVersion ) ) ) ;
598
598
}
@@ -651,17 +651,17 @@ public void IlToNativeToIlCodeVersion_SyntheticAndExplicit(MockTarget.Architectu
651
651
Assert . Equal ( 2 , ilCodeVersions . Count ) ;
652
652
653
653
// Get the explicit ILCodeVersion and assert that it is in the list of ILCodeVersions
654
- ILCodeVersionHandle explicitILcodeVersion = codeVersions . GetActiveILCodeVersion ( methodDescAddress ) ;
655
- Assert . Contains ( ilCodeVersions , ilcodeVersion => ilcodeVersion . Equals ( explicitILcodeVersion ) ) ;
656
- Assert . True ( explicitILcodeVersion . IsValid ) ;
654
+ ILCodeVersionHandle explicitILCodeVersion = codeVersions . GetActiveILCodeVersion ( methodDescAddress ) ;
655
+ Assert . Contains ( ilCodeVersions , ilcodeVersion => ilcodeVersion . Equals ( explicitILCodeVersion ) ) ;
656
+ Assert . True ( explicitILCodeVersion . IsValid ) ;
657
657
658
658
// Find the other ILCodeVersion (synthetic) and assert that it is valid.
659
- ILCodeVersionHandle syntheticILcodeVersion = ilCodeVersions . Find ( ilCodeVersion => ! ilCodeVersion . Equals ( explicitILcodeVersion ) ) ;
659
+ ILCodeVersionHandle syntheticILcodeVersion = ilCodeVersions . Find ( ilCodeVersion => ! ilCodeVersion . Equals ( explicitILCodeVersion ) ) ;
660
660
Assert . True ( syntheticILcodeVersion . IsValid ) ;
661
661
662
662
// Verify getting ILCode is equal to ILCode from NativeCode from ILCode.
663
- NativeCodeVersionHandle explicitNativeCodeVersion = codeVersions . GetActiveNativeCodeVersionForILCodeVersion ( methodDescAddress , explicitILcodeVersion ) ;
664
- Assert . True ( explicitILcodeVersion . Equals ( codeVersions . GetILCodeVersion ( explicitNativeCodeVersion ) ) ) ;
663
+ NativeCodeVersionHandle explicitNativeCodeVersion = codeVersions . GetActiveNativeCodeVersionForILCodeVersion ( methodDescAddress , explicitILCodeVersion ) ;
664
+ Assert . True ( explicitILCodeVersion . Equals ( codeVersions . GetILCodeVersion ( explicitNativeCodeVersion ) ) ) ;
665
665
666
666
NativeCodeVersionHandle syntheticNativeCodeVersion = codeVersions . GetActiveNativeCodeVersionForILCodeVersion ( methodDescAddress , syntheticILcodeVersion ) ;
667
667
Assert . True ( syntheticILcodeVersion . Equals ( codeVersions . GetILCodeVersion ( syntheticNativeCodeVersion ) ) ) ;
0 commit comments