public void TestMid() { var r1 = new Random(); var i1 = r1.Next(0, 50); var netString1 = Helper.RandomString(i1); var qString1 = new QStringRef(netString1); var subNet = netString1.Substring(i1 / 5); var subQ = qString1.Mid(i1 / 5); Assert.AreEqual(subNet, subQ.ToString()); }