0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-20 00:18:02 +03:00

Test fixes

This commit is contained in:
bird_egop
2025-04-16 18:30:17 +03:00
parent d4eb920e2f
commit 6719cff2af
38 changed files with 469 additions and 170 deletions

View File

@ -30,9 +30,9 @@ public class CmpImmWithRm8Tests
// Check the first operand (CL)
var clOperand = instructions[0].StructuredOperands[0];
Assert.IsType<RegisterOperand>(clOperand);
var registerOperand = (RegisterOperand)clOperand;
Assert.Equal(RegisterIndex.C, registerOperand.Register);
Assert.IsType<Register8Operand>(clOperand);
var registerOperand = (Register8Operand)clOperand;
Assert.Equal(RegisterIndex8.CL, registerOperand.Register);
Assert.Equal(8, registerOperand.Size); // Validate that it's an 8-bit register (CL)
// Check the second operand (immediate value)