Esempio n. 1
0
 public void TestConnectClient()
 {
     ServiceForDictonary testService = new ServiceForDictonary();
     var resultMethod = testService.ConnectClient();
     Assert.IsNotNull(resultMethod);
     Assert.IsTrue(resultMethod);
 }
Esempio n. 2
0
        public void TestConnectClient()
        {
            ServiceForDictonary testService = new ServiceForDictonary();
            var resultMethod = testService.ConnectClient();

            Assert.IsNotNull(resultMethod);
            Assert.IsTrue(resultMethod);
        }
Esempio n. 3
0
        public void TestDeleteWord()
        {
            int roomDictonary = 0;
            string testWord = "жук";
            ServiceForDictonary testService = new ServiceForDictonary();

            bool actualMessage = testService.DeleteWord(roomDictonary, testWord);

            Assert.IsTrue(actualMessage);
        }
Esempio n. 4
0
        public void TestAddWord()
        {
            ServiceForDictonary testService = new ServiceForDictonary(new FakeServiceDbRepository());
            string testWord = "жук";
            int roomDictonary = 0;

            bool actualAnswer = testService.AddWord(roomDictonary, testWord);

            Assert.IsTrue(actualAnswer);
        }
Esempio n. 5
0
        public void TestDeleteWord()
        {
            int    roomDictonary            = 0;
            string testWord                 = "жук";
            ServiceForDictonary testService = new ServiceForDictonary();

            bool actualMessage = testService.DeleteWord(roomDictonary, testWord);

            Assert.IsTrue(actualMessage);
        }
Esempio n. 6
0
        public void TestAddWord()
        {
            ServiceForDictonary testService = new ServiceForDictonary(new FakeServiceDbRepository());
            string testWord      = "жук";
            int    roomDictonary = 0;

            bool actualAnswer = testService.AddWord(roomDictonary, testWord);

            Assert.IsTrue(actualAnswer);
        }
Esempio n. 7
0
        public void TestUpdateWords()
        {
            int roomDictonary = 0;
            string searchWord = "кот";
            string[] exrectedTranslate = new string[] { "cat" };
            ServiceForDictonary testService = new ServiceForDictonary(new FakeServiceDbRepository());

            bool actualMessage = testService.UpdateWords(roomDictonary, searchWord, exrectedTranslate);

            Assert.IsTrue(actualMessage);
        }
Esempio n. 8
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);
        }
Esempio n. 9
0
        public void TestUpdateWords()
        {
            int    roomDictonary = 0;
            string searchWord    = "кот";

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

            bool actualMessage = testService.UpdateWords(roomDictonary, searchWord, exrectedTranslate);

            Assert.IsTrue(actualMessage);
        }
Esempio n. 10
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);
        }