public void InitalizeWithEmptyBuffer()
		{
			using (var foundation = new Foundation())
			{
				var stream = new DefaultMemoryOutputStream(new byte[] { });
			}
		}
Exemplo n.º 2
0
 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);
			}
		}
Exemplo n.º 4
0
        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);
            }
        }