Exemplo n.º 1
0
        void check_stores_are_different()
        {
            IVocabularyStore store1 = VocabularyStoreFactory.getVocabularyStore();
            IVocabularyStore store2 = VocabularyStoreFactory.getVocabularyStore();

            Assert.NotEqual(store1, store2);
        }
Exemplo n.º 2
0
        void check_stores_are_differentcontain_base_words()
        {
            IVocabularyStore store1 = VocabularyStoreFactory.getVocabularyStore();
            IVocabularyStore store2 = VocabularyStoreFactory.getVocabularyStore();

            Assert.Equal("n. Not an issue", store1.getMeaning("feature"));
            Assert.Equal("n. Slogging for the whole night", store1.getMeaning("night"));

            Assert.Equal("n. Not an issue", store2.getMeaning("feature"));
            Assert.Equal("n. Slogging for the whole night", store2.getMeaning("night"));
        }
Exemplo n.º 3
0
 public void start()
 {
     vocabularyStore = VocabularyStoreFactory.getVocabularyStore();
     // Use this store for the user
 }