public void Get_Bytes(byte startAddress, byte endAddress, byte[] expectedBytes) { SetColumnAddress setColumnAddress = new SetColumnAddress(startAddress, endAddress); byte[] actualBytes = setColumnAddress.GetBytes(); Assert.Equal(expectedBytes, actualBytes); }
public void Get_Bytes_With_Default_Values() { SetColumnAddress setColumnAddress = new SetColumnAddress(); byte[] actualBytes = setColumnAddress.GetBytes(); Assert.Equal(new byte[] { 0x21, 0x00, 0x7F }, actualBytes); }