|
1 | 1 | namespace Spice86.Tests.UI; |
2 | 2 |
|
3 | | -using Avalonia.Headless.XUnit; |
4 | | - |
5 | 3 | using FluentAssertions; |
6 | 4 |
|
7 | 5 | using Iced.Intel; |
@@ -59,7 +57,7 @@ private static string SegmentsToText(List<FormattedTextToken> segments) => |
59 | 57 | /// Verifies that register operands are evaluated for MOV reg, reg. |
60 | 58 | /// ASM: mov ax, bx (opcode 89 D8) |
61 | 59 | /// </summary> |
62 | | - [AvaloniaFact] |
| 60 | + [Fact] |
63 | 61 | public void EvaluateOperands_MovAxBx_ShowsBothRegisterValues() { |
64 | 62 | // Arrange |
65 | 63 | State state = CreateState(); |
@@ -95,7 +93,7 @@ public void EvaluateOperands_MovAxBx_ShowsBothRegisterValues() { |
95 | 93 | /// Verifies that memory operands are evaluated for MOV reg, [mem]. |
96 | 94 | /// ASM: mov ax, [bx] (opcode 8B 07) with DS:BX pointing to 0xABCD. |
97 | 95 | /// </summary> |
98 | | - [AvaloniaFact] |
| 96 | + [Fact] |
99 | 97 | public void EvaluateOperands_MovAxMemBx_ShowsMemoryValue() { |
100 | 98 | // Arrange |
101 | 99 | State state = CreateState(); |
@@ -134,7 +132,7 @@ public void EvaluateOperands_MovAxMemBx_ShowsMemoryValue() { |
134 | 132 | /// Verifies that immediates are NOT evaluated (they are already visible in disassembly text). |
135 | 133 | /// ASM: mov ax, 0x1234 (opcode B8 34 12) - only AX should appear in evaluation. |
136 | 134 | /// </summary> |
137 | | - [AvaloniaFact] |
| 135 | + [Fact] |
138 | 136 | public void EvaluateOperands_MovAxImm_OnlyShowsDestRegister() { |
139 | 137 | // Arrange |
140 | 138 | State state = CreateState(); |
@@ -165,7 +163,7 @@ public void EvaluateOperands_MovAxImm_OnlyShowsDestRegister() { |
165 | 163 | /// Verifies that memory with displacement is correctly evaluated. |
166 | 164 | /// ASM: mov ax, word ptr [bx+0x10] (opcode 8B 47 10) |
167 | 165 | /// </summary> |
168 | | - [AvaloniaFact] |
| 166 | + [Fact] |
169 | 167 | public void EvaluateOperands_MovAxMemBxDisp_ShowsMemoryValue() { |
170 | 168 | // Arrange |
171 | 169 | State state = CreateState(); |
@@ -203,7 +201,7 @@ public void EvaluateOperands_MovAxMemBxDisp_ShowsMemoryValue() { |
203 | 201 | /// Verifies that LEA computes the effective address instead of reading memory. |
204 | 202 | /// ASM: lea ax, [bp-8] (opcode 8D 46 F8) - should show computed address, not memory contents. |
205 | 203 | /// </summary> |
206 | | - [AvaloniaFact] |
| 204 | + [Fact] |
207 | 205 | public void EvaluateOperands_LeaAxBpMinus8_ShowsEffectiveAddress() { |
208 | 206 | // Arrange |
209 | 207 | State state = CreateState(); |
@@ -244,7 +242,7 @@ public void EvaluateOperands_LeaAxBpMinus8_ShowsEffectiveAddress() { |
244 | 242 | /// Verifies LEA with base+index computes the effective address. |
245 | 243 | /// ASM: lea ax, [bx+si] (opcode 8D 00) |
246 | 244 | /// </summary> |
247 | | - [AvaloniaFact] |
| 245 | + [Fact] |
248 | 246 | public void EvaluateOperands_LeaAxBxSi_ShowsEffectiveAddress() { |
249 | 247 | // Arrange |
250 | 248 | State state = CreateState(); |
@@ -277,7 +275,7 @@ public void EvaluateOperands_LeaAxBxSi_ShowsEffectiveAddress() { |
277 | 275 | /// Verifies that LDS evaluates the far pointer memory operand (dword containing offset:segment). |
278 | 276 | /// ASM: lds si, ss:[bp+0x10] (opcode C5 76 10) - should show the dword value at memory. |
279 | 277 | /// </summary> |
280 | | - [AvaloniaFact] |
| 278 | + [Fact] |
281 | 279 | public void EvaluateOperands_LdsSiBpPlus10_ShowsFarPointerValue() { |
282 | 280 | // Arrange |
283 | 281 | State state = CreateState(); |
@@ -318,7 +316,7 @@ public void EvaluateOperands_LdsSiBpPlus10_ShowsFarPointerValue() { |
318 | 316 | /// ASM: div word [bp-0xE] (opcode F7 76 F2) with SS=0, BP=0x0100 and divisor 0xE4C3 at SS:BP-0xE. |
319 | 317 | /// The display label must show BP-0xE, not BP+0xFFF2. |
320 | 318 | /// </summary> |
321 | | - [AvaloniaFact] |
| 319 | + [Fact] |
322 | 320 | public void EvaluateOperands_DivWordBpMinusE_ShowsNegativeDisplacementAndCorrectValue() { |
323 | 321 | // Arrange |
324 | 322 | State state = CreateState(); |
@@ -359,7 +357,7 @@ public void EvaluateOperands_DivWordBpMinusE_ShowsNegativeDisplacementAndCorrect |
359 | 357 | /// Verifies that CALL dword ptr [mem] evaluates the far pointer memory operand. |
360 | 358 | /// ASM: call dword ptr ss:[bp-4] (opcode FF 5E FC) - should show the target address. |
361 | 359 | /// </summary> |
362 | | - [AvaloniaFact] |
| 360 | + [Fact] |
363 | 361 | public void EvaluateOperands_CallFarPtrBpMinus4_ShowsFarPointerValue() { |
364 | 362 | // Arrange |
365 | 363 | State state = CreateState(); |
|
0 commit comments