Ejemplo n.º 1
0
        public void TestFindTranslate()
        {
            int roomDictonary = 0;
            string searchWord = "кот";
            string[] exrectedTranslate = { "cat" };
            ServiceForDictonary testService = new ServiceForDictonary(new FakeServiceDbRepository());

            var actualTranslate = testService.FindTranslate(roomDictonary, searchWord);
            Assert.IsNotNull(actualTranslate);
            CollectionAssert.AreEquivalent(exrectedTranslate, actualTranslate);
        }
Ejemplo n.º 2
0
        public void TestFindTranslate()
        {
            int    roomDictonary = 0;
            string searchWord    = "кот";

            string[]            exrectedTranslate = { "cat" };
            ServiceForDictonary testService       = new ServiceForDictonary(new FakeServiceDbRepository());

            var actualTranslate = testService.FindTranslate(roomDictonary, searchWord);

            Assert.IsNotNull(actualTranslate);
            CollectionAssert.AreEquivalent(exrectedTranslate, actualTranslate);
        }