예제 #1
0
        public void Get_Bytes(AddressingMode memoryAddressingMode, byte[] expectedBytes)
        {
            SetMemoryAddressingMode setMemoryAddressingMode = new SetMemoryAddressingMode(memoryAddressingMode);

            byte[] actualBytes = setMemoryAddressingMode.GetBytes();
            Assert.Equal(expectedBytes, actualBytes);
        }
예제 #2
0
        public void Get_Bytes_With_Default_Values()
        {
            SetMemoryAddressingMode setMemoryAddressingMode = new SetMemoryAddressingMode();

            byte[] actualBytes = setMemoryAddressingMode.GetBytes();
            Assert.Equal(new byte[] { 0x20, 0x02 }, actualBytes);
        }