Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #254 from da9l/master

InMemoryAdapterTests.TestFindAllByPartialName fails when table is in schema.
  • Loading branch information...
commit dd0e46428379425b2bd2f5b0b7d01dd3d5f5429d 2 parents 9b546d5 + 3bbf3df
@markrendle authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 Simple.Data.InMemoryTest/InMemoryTests.cs
View
16 Simple.Data.InMemoryTest/InMemoryTests.cs
@@ -90,10 +90,10 @@ public void TestFindAllByPartialName()
{
Database.UseMockAdapter(new InMemoryAdapter());
var db = Database.Open();
- db.Test.Insert(Id: 1, Name: "Alice");
- db.Test.Insert(Id: 2, Name: "Bob");
- db.Test.Insert(Id: 2, Name: "Clive");
- List<dynamic> records = db.Test.FindAll(db.Test.Name.Like("A%")).ToList();
+ db.MySchema.Test.Insert(Id: 1, Name: "Alice");
+ db.MySchema.Test.Insert(Id: 2, Name: "Bob");
+ db.MySchema.Test.Insert(Id: 2, Name: "Clive");
+ List<dynamic> records = db.MySchema.Test.FindAll(db.MySchema.Test.Name.Like("A%")).ToList();
Assert.IsNotNull(records);
Assert.AreEqual(1, records.Count);
}
@@ -103,10 +103,10 @@ public void TestFindAllByExcludedPartialName()
{
Database.UseMockAdapter(new InMemoryAdapter());
var db = Database.Open();
- db.Test.Insert(Id: 1, Name: "Alice");
- db.Test.Insert(Id: 2, Name: "Bob");
- db.Test.Insert(Id: 2, Name: "Clive");
- List<dynamic> records = db.Test.FindAll(db.Test.Name.NotLike("A%")).ToList();
+ db.MySchema.Test.Insert(Id: 1, Name: "Alice");
+ db.MySchema.Test.Insert(Id: 2, Name: "Bob");
+ db.MySchema.Test.Insert(Id: 2, Name: "Clive");
+ List<dynamic> records = db.MySchema.Test.FindAll(db.MySchema.Test.Name.NotLike("A%")).ToList();
Assert.IsNotNull(records);
Assert.AreEqual(2, records.Count);
}
Please sign in to comment.
Something went wrong with that request. Please try again.