public void TestContainsQStringRef_A_StringCaseInsensitive() { var r1 = new Random(); var i1 = r1.Next(100, 150); var netString1 = Helper.RandomString(i1); var qString1 = new QStringRef(netString1); var r = new Random(); var i = r.Next(0, 30); var look = netString1.Substring(i, 4).ToUpper(); var net = netString1.Contains(look, StringComparison.OrdinalIgnoreCase); var q = qString1.Contains(look, CaseSensitivity.CaseInsensitive); Assert.AreEqual(net, q); }
public void TestContainsQStringRef_A_QCharCaseSensitive() { var r1 = new Random(); var i1 = r1.Next(100, 150); var netString1 = Helper.RandomString(i1); var qString1 = new QStringRef(netString1); var r = new Random(); var i = r.Next(0, 30); var look = netString1.ElementAt(i); var net = netString1.Contains(look); var qs = new QChar(look); var q = qString1.Contains(qs); Assert.AreEqual(net, q); }
public void TestContainsQStringRef_A_QLatin1StringCaseSensitive() { var r1 = new Random(); var i1 = r1.Next(100, 150); var netString1 = Helper.RandomString(i1); var qString1 = new QStringRef(netString1); var r = new Random(); var i = r.Next(0, 30); var look = netString1.Substring(i, 4); var net = netString1.Contains(look); var ql = new QLatin1String(look); var q = qString1.Contains(ql); Assert.AreEqual(net, q); }
public void TestContainsQStringRef_A_StringCaseSensitive() { var r1 = new Random(); var i1 = r1.Next(100, 150); var netString1 = Helper.RandomString(i1); bool net; bool q; using (var qString1 = new QStringRef(netString1)) { var r = new Random(); var i = r.Next(0, 30); var look = netString1.Substring(i, 4).ToUpper(); net = netString1.Contains(look); q = qString1.Contains(look); } Assert.AreEqual(net, q); }
public void TestContainsQStringRef_A_QCharCaseInsensitive() { var r1 = new Random(); var i1 = r1.Next(100, 150); var netString1 = Helper.RandomString(i1); bool net; bool q; using (var qString1 = new QStringRef(netString1)) { var r = new Random(); var i = r.Next(0, 30); var look = netString1.Substring(i, 1).ToUpper(); net = netString1.Contains(look, StringComparison.OrdinalIgnoreCase); var qs = new QChar(look[0]); q = qString1.Contains(qs, CaseSensitivity.CaseInsensitive); } Assert.AreEqual(net, q); }
public void TestContainsQStringRef_A_StringCaseSensitive() { var r1 = new Random(); var i1 = r1.Next(100, 150); var netString1 = Helper.RandomString(i1); var qString1 = new QStringRef(netString1); var r = new Random(); var i = r.Next(0, 30); var look = netString1.Substring(i, 4).ToUpper(); var net = netString1.Contains(look); var q = qString1.Contains(look); Assert.AreEqual(net, q); }
public void TestContainsQStringRef_A_QStringRefCaseInsensitive() { var r1 = new Random(); var i1 = r1.Next(100, 150); var netString1 = Helper.RandomString(i1); var qString1 = new QStringRef(netString1); var r = new Random(); var i = r.Next(0, 30); var look = netString1.Substring(i, 4).ToUpper(); var net = netString1.Contains(look, StringComparison.OrdinalIgnoreCase); var qs = new QStringRef(look); var q = qString1.Contains(qs, CaseSensitivity.CaseInsensitive); Assert.AreEqual(net, q); }
public void TestContainsQStringRef_A_QCharCaseSensitive() { var r1 = new Random(); var i1 = r1.Next(100, 150); var netString1 = Helper.RandomString(i1); var qString1 = new QStringRef(netString1); var r = new Random(); var i = r.Next(0, 30); var look = netString1.ElementAt(i); var net = netString1.Contains(look); var qs = new QChar(look); var q = qString1.Contains(qs); Assert.AreEqual(net, q); }