Ejemplo n.º 1
0
        public void TestHasDictionary()
        {
            DictionaryDatabase db = new DictionaryDatabase();
            var dbs = db.ListDictionaries();

            Assert.IsNotNull(dbs);
            Assert.IsTrue(dbs.Count() > 0);
            foreach (var dbName in dbs)
            {
                Assert.IsTrue(db.HasDictionary(dbName));
            }
        }
Ejemplo n.º 2
0
        public void TestListDictionaries()
        {
            DictionaryDatabase db = new DictionaryDatabase();
            var dbs = db.ListDictionaries();

            Assert.IsNotNull(dbs);
            Assert.IsTrue(dbs.Count() > 0);
            foreach (var dbName in dbs)
            {
                Assert.IsNotNull(dbName);
                Assert.AreNotSame(0, dbName.Length);
            }
        }