diff options
Diffstat (limited to 'Q1.tests/Core/AddressingModesTests.cs')
| -rw-r--r-- | Q1.tests/Core/AddressingModesTests.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Q1.tests/Core/AddressingModesTests.cs b/Q1.tests/Core/AddressingModesTests.cs new file mode 100644 index 0000000..19be64d --- /dev/null +++ b/Q1.tests/Core/AddressingModesTests.cs @@ -0,0 +1,20 @@ +namespace Q1.tests.Core; + +using core; +using core.Arch; + +[TestFixture] +public class AddressingModesTests +{ + + [Test] + public void LookupShouldHaveAddressingModes() + { + var populatedModes = AddressingModes.Lookup + .Where(x => x != default) + .ToArray(); + + Assert.That(populatedModes, Has.Length.EqualTo(8), + "Expected 8 addressing modes to be defined"); + } +}
\ No newline at end of file |
