예제 #1
0
    public void TestGetAllIndexes()
    {
        var list = new List <Index>();

        using (IRepository repo = new SQLiteRepository(chinookConnectionString))
        {
            list = repo.GetAllIndexes();
        }
        Assert.IsTrue(list.Count == 22);
        Assert.IsTrue(list[0].IndexName == "IFK_AlbumArtistId");
    }
예제 #2
0
 public void TestGetAllIndexes2()
 {
     var list = new List<Index>();
     using (IRepository repo = new SQLiteRepository(infoConnectionString))
     {
         list = repo.GetAllIndexes();
     }
     Assert.IsTrue(list.Count == 0);
 }
예제 #3
0
 public void TestGetAllIndexes()
 {
     var list = new List<Index>();
     using (IRepository repo = new SQLiteRepository(chinookConnectionString))
     {
         list = repo.GetAllIndexes();
     }
     Assert.IsTrue(list.Count == 22);
     Assert.IsTrue(list[0].IndexName == "IFK_AlbumArtistId");
 }