예제 #1
0
        public void VMprofileEditexception()
        {
            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.VMProfile profile = new MagicTactilForWindows.ViewModel.VMProfile(network);
                profile.edit();
                Assert.Fail("exception should have benn thrown");
            }
            catch (Exception)
            {
                var message = "OK";
            }
        }
예제 #2
0
        public void VMprofileinstanciation()
        {
            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.VMProfile deck = new MagicTactilForWindows.ViewModel.VMProfile(network);
            }
            catch (Exception)
            {
                var message = "problem with VM";
                Assert.Fail(message);
            }
        }
예제 #3
0
        public void VMprofileEdit()
        {
            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.VMProfile profile = new MagicTactilForWindows.ViewModel.VMProfile(network);
                profile.mail = "";
                profile.birth = "";
                profile.firstName = "";
                profile.gender = "";
                profile.location = "";
                profile.name = "";
                profile.phone = "";
                profile.surName = "";
                profile.tmpbirth = "";
                profile.tmpfirstName = "";
                profile.tmpgender = "";
                profile.tmplocation = "";
                profile.tmpmail = "";
                profile.tmpphone = "";
                profile.tmpsurName = "";
                profile.edit();
            }
            catch (Exception)
            {
                var message = "problem with VM";
                Assert.Fail(message);
            }
        }
예제 #4
0
        public void VMprofileEdit()
        {
            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.VMProfile profile = new MagicTactilForWindows.ViewModel.VMProfile(network);
                profile.mail         = "";
                profile.birth        = "";
                profile.firstName    = "";
                profile.gender       = "";
                profile.location     = "";
                profile.name         = "";
                profile.phone        = "";
                profile.surName      = "";
                profile.tmpbirth     = "";
                profile.tmpfirstName = "";
                profile.tmpgender    = "";
                profile.tmplocation  = "";
                profile.tmpmail      = "";
                profile.tmpphone     = "";
                profile.tmpsurName   = "";
                profile.edit();
            }
            catch (Exception)
            {
                var message = "problem with VM";
                Assert.Fail(message);
            }
        }
예제 #5
0
        public void VMprofileinstanciation()
        {
            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.VMProfile deck = new MagicTactilForWindows.ViewModel.VMProfile(network);
            }
            catch (Exception)
            {
                var message = "problem with VM";
                Assert.Fail(message);
            }
        }
예제 #6
0
        public void VMprofileEditexception()
        {
            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.VMProfile profile = new MagicTactilForWindows.ViewModel.VMProfile(network);
                profile.edit();
                Assert.Fail("exception should have benn thrown");
            }
            catch (Exception)
            {
                var message = "OK";
                
            }
        }