Exemplo n.º 1
0
        public void TestGetElementAt()
        {
            DictionaryModel file = new DictionaryModel();
            List <Word>     data = new List <Word>();

            data = file.ReadFile(ConstantWord.TEST_ONE);
            Assert.AreEqual(file.GetElementAt(ConstantWord.ZERO).GetEnglish(), ConstantWord.TEST_ENGLISH_1);
            Assert.AreEqual(file.GetElementAt(ConstantWord.ZERO).GetChinese(), ConstantWord.TEST_CHINESE_1);
            Assert.AreEqual(file.GetElementAt(ConstantWord.FIVE).GetEnglish(), ConstantWord.TEST_ENGLISH_2);
            Assert.AreEqual(file.GetElementAt(ConstantWord.FIVE).GetChinese(), ConstantWord.TEST_CHINESE_2);
        }