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

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

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

            Assert.IsTrue(actualMessage);
        }
Ejemplo 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);
        }
Ejemplo n.º 5
0
        public void TestDeleteWord()
        {
            int    roomDictonary            = 0;
            string testWord                 = "жук";
            ServiceForDictonary testService = new ServiceForDictonary();

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

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