1
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-12-10 08:01:21 +04:00

Replaced all Assert.Contains with strict Assert.Equal in tests for better validation

This commit is contained in:
bird_egop
2025-04-13 03:38:50 +03:00
parent 0d271abdcb
commit b2929c38e9
5 changed files with 21 additions and 60 deletions

View File

@@ -250,11 +250,7 @@ public class DataTransferInstructionTests
// Assert
Assert.NotNull(instruction);
Assert.Equal("xchg", instruction.Mnemonic);
// XCHG is commutative, so we just check that both registers are in the operands
// rather than enforcing a specific order
Assert.Contains("eax", instruction.Operands);
Assert.Contains("ecx", instruction.Operands);
Assert.Equal("eax, ecx", instruction.Operands);
}
/// <summary>