public void Get_Bytes(PageAddress startAddress, PageAddress endAddress, byte[] expectedBytes) { SetPageAddress setPageAddress = new SetPageAddress(startAddress, endAddress); byte[] actualBytes = setPageAddress.GetBytes(); Assert.Equal(expectedBytes, actualBytes); }
public void Get_Bytes_With_Default_Values() { SetPageAddress setPageAddress = new SetPageAddress(); byte[] actualBytes = setPageAddress.GetBytes(); Assert.Equal(new byte[] { 0x22, 0x00, 0x07 }, actualBytes); }