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