public void Test_Footer_Aligner_When_The_Position_Doesnt_Need_To_Be_Aligned() { binaryWriter.Position.Returns(0x04); BinarySerializer.AlignFooter(binaryWriter); binaryWriter.DidNotReceive().WriteBytes(Arg.Any <byte[]>()); }
public void Test_Footer_Aligner_When_The_Position_Needs_To_Be_Aligned() { binaryWriter.Position.Returns(0x01); BinarySerializer.AlignFooter(binaryWriter); binaryWriter.WriteBytes(Matcher.ForEquivalentArray(new byte[3])); }