public void Can_Get_Byte(char[] input, int index) { //prepare var frame = new AllocationUnit(16); frame.WriteAllocationUnit(input); //action var output = frame.GetByte(index); //assertion Assert.AreEqual(input[index], output); }
public void Can_Change_Byte(char[] input, int index, char data) { //prepare var frame = new AllocationUnit(16); frame.WriteAllocationUnit(input); //action frame.ChangeByte(index, data); var output = frame.GetByte(index); //assertion Assert.AreEqual(output, data); }