Exemplo n.º 1
0
 public void CompareString([DataSources] string context)
 {
     using (var db = GetDataContext(context))
         AreEqual(
             from p in db.Person where p.FirstName == "John" select p,
             CompilerServices.CompareString(db));
 }
 public void CompareString1()
 {
     ForEachProvider(db =>
     {
         var str = CompilerServices.CompareString(db).ToString();
         Assert.That(str.IndexOf("CASE"), Is.EqualTo(-1));
     });
 }
Exemplo n.º 3
0
 public void CompareString1(string context)
 {
     using (var db = GetDataContext(context))
     {
         var str = CompilerServices.CompareString(db).ToString();
         Assert.That(str.IndexOf("CASE"), Is.EqualTo(-1));
     }
 }
Exemplo n.º 4
0
 public void CompareString1([IncludeDataSources(TestProvName.AllSQLite)] string context)
 {
     using (var db = GetDataContext(context))
     {
         var query = (IQueryable <Person>)CompilerServices.CompareString(db);
         var str   = query.ToString();
         TestContext.WriteLine(str);
         Assert.That(str, Does.Not.Contain("CASE"));
     }
 }
 public void CompareString()
 {
     ForEachProvider(db => AreEqual(
                         from p in db.Person where p.FirstName == "John" select p,
                         CompilerServices.CompareString(db)));
 }