public void InitalizeWithEmptyBuffer() { using (var foundation = new Foundation()) { var stream = new DefaultMemoryOutputStream(new byte[] { }); } }
public void InitalizeAndGetData() { using (var foundation = new Foundation()) { var buffer = new byte[] { 1, 2, 3, 4, 5 }; var stream = new DefaultMemoryOutputStream(buffer); var bufferOut = stream.GetData(); Assert.IsNotNull(bufferOut); Assert.AreEqual(5, bufferOut.Length); } }