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"; } }
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); } }
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); } }