public void CloneTest() { Contact target = new Contact(); // TODO: Initialize to an appropriate value Contact expected = null; // TODO: Initialize to an appropriate value Contact actual; actual = target.Clone(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void CityTest() { Contact target = new Contact(); // TODO: Initialize to an appropriate value string expected = string.Empty; // TODO: Initialize to an appropriate value string actual; target.City = expected; actual = target.City; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public ContactDetailWindow(Mode m, Contact c) { InitializeComponent(); this._mode = m; this._contact = c; this._dummy = c.Clone(); this.DataContext = this._dummy; if (m == Mode.Add) { this.Title = "Add Contact"; } else if (m == Mode.Edit) { this.Title = "Edit Contact"; } TextBox[] tbs = { this.firstNameTextBox, this.lastNameTextBox, this.phoneTextBox, this.addressTextBox, this.cityTextBox, this.stateTextBox, this.zipTextBox }; foreach (var tb in tbs) { // enabled only if not read mode tb.IsEnabled = !(m == Mode.Read); } }
public void ContactConstructorTest() { Contact target = new Contact(); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void ZipTest() { Contact target = new Contact(); // TODO: Initialize to an appropriate value Nullable<int> expected = new Nullable<int>(); // TODO: Initialize to an appropriate value Nullable<int> actual; target.Zip = expected; actual = target.Zip; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void FullNameTest() { Contact target = new Contact(); // TODO: Initialize to an appropriate value string actual; actual = target.FullName; Assert.Inconclusive("Verify the correctness of this test method."); }
public void ContactConstructorTest2() { string first = string.Empty; // TODO: Initialize to an appropriate value string last = string.Empty; // TODO: Initialize to an appropriate value Nullable<int> phone = new Nullable<int>(); // TODO: Initialize to an appropriate value string address = string.Empty; // TODO: Initialize to an appropriate value string city = string.Empty; // TODO: Initialize to an appropriate value string state = string.Empty; // TODO: Initialize to an appropriate value Nullable<int> zip = new Nullable<int>(); // TODO: Initialize to an appropriate value Contact target = new Contact(first, last, phone, address, city, state, zip); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void ContactConstructorTest1() { string first = string.Empty; // TODO: Initialize to an appropriate value string last = string.Empty; // TODO: Initialize to an appropriate value Contact target = new Contact(first, last); Assert.Inconclusive("TODO: Implement code to verify target"); }
public ContactDetailWindow() { InitializeComponent(); this._mode = Mode.Add; this._contact = new Contact(); }
public void TestToString() { Contact c1 = new Contact("jim", "bob"); Assert.AreEqual(c1.ToString(), "jim bob"); }
public void TestFullName() { Contact c1 = new Contact("jim", "bob"); Assert.AreEqual(c1.FullName, "jim bob"); }