public void TestSplitString() { _sendBridgeStream.Write("şerhat ferhat mehmet"); var data = _sendBridgeStream.Encode(); var data1 = new byte[256]; var data2 = new byte[256]; var data1Count = data.Length / 2; Array.Copy(data, 0, data1, 0, data1Count); Array.Copy(data, data1Count, data2, 0, data.Length - data1Count); var receivePacket = new BridgeStream(); receivePacket.AppendToSource(data1, data1Count); receivePacket.AppendToSource(data2, data.Length - data1Count); var sendValue = receivePacket.ReadString(); Assert.AreEqual("şerhat ferhat mehmet", sendValue); }