public void Get_Bytes(AddressingMode memoryAddressingMode, byte[] expectedBytes) { SetMemoryAddressingMode setMemoryAddressingMode = new SetMemoryAddressingMode(memoryAddressingMode); byte[] actualBytes = setMemoryAddressingMode.GetBytes(); Assert.Equal(expectedBytes, actualBytes); }
public void Get_Bytes_With_Default_Values() { SetMemoryAddressingMode setMemoryAddressingMode = new SetMemoryAddressingMode(); byte[] actualBytes = setMemoryAddressingMode.GetBytes(); Assert.Equal(new byte[] { 0x20, 0x02 }, actualBytes); }