public void Init() { byte[] buffer = new byte[10] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; MemoryStream ms = new MemoryStream(buffer); byte[] buffer2 = new byte[10] { 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 }; Stream ms2 = new MemoryStream(buffer); streamControl = new StreamControl(2, 5); streamControl.AddStream("one", ms); streamControl.AddStream("two", ms2); }