Пример #1
0
        public void VMCreateerrvisi()
        {
            MagicTactilForWindows.Model.Network network = null;
            try
            {
                network = new MagicTactilForWindows.Model.Network();
                network.connect("127.0.0.1", 3000);  //127.0.0.1
            }
            catch (Exception)
            {
                var message = "Unable to connect to the server";
                Assert.Fail(message);
            }

            try
            {
                MagicTactilForWindows.ViewModel.VMCreateRoom deck = new MagicTactilForWindows.ViewModel.VMCreateRoom(network);
                //deck.errVisibility = System.Windows.Visibility.Visible;
            }
            catch (Exception)
            {
                var message = "problem with VM";
                Assert.Fail(message);
            }
        }
Пример #2
0
        public void VMCreateRoomerrmess()
        {
            MagicTactilForWindows.Model.Network network = null;
            try
            {
                network = new MagicTactilForWindows.Model.Network();
                network.connect("127.0.0.1", 3000);  //127.0.0.1
            }
            catch (Exception)
            {
                var message = "Unable to connect to the server";
                Assert.Fail(message);
            }

            try
            {
                MagicTactilForWindows.ViewModel.VMCreateRoom deck = new MagicTactilForWindows.ViewModel.VMCreateRoom(network);
                deck.errMess = "test!%!!";
            }
            catch (Exception)
            {
                var message = "problem with VM";
                Assert.Fail(message);
            }
        }
Пример #3
0
        public void VMCreateRoominstanciation()
        {
            MagicTactilForWindows.Model.Network network = null;
            try
            {
                network = new MagicTactilForWindows.Model.Network();
                network.connect("127.0.0.1", 3000);  //127.0.0.1
            }
            catch (Exception)
            {
                var message = "Unable to connect to the server";
                Assert.Fail(message);
            }

            try
            {

                MagicTactilForWindows.ViewModel.VMCreateRoom deck = new MagicTactilForWindows.ViewModel.VMCreateRoom(network);
            }
            catch (Exception)
            {
                var message = "problem with VM";
                Assert.Fail(message);
            }
        }