Example #1
0
        //Authors: Keenen Cates, Simon Owens
        /// <summary>
        /// Tests to see if actual name and actual address match expected values. Otherwise, fail assertions.
        /// </summary>
        /// <param name="expected_name"> Expected name of kid. </param>
        /// <param name="expected_addr"> Expected Address of kid. </param>
        /// <param name="actual_kid"> Actual kid object. </param>
        private void AssertKidEquals(string expected_name, string expected_addr, kid actual_kid)
        {
            // Test for name
            Assert.AreEqual(expected_name, actual_kid.getName());

            // Test for address
            Assert.AreEqual(expected_addr, actual_kid.getAddress());
        }
Example #2
0
 //Authors: Chris and Simon
 public editPopup(kid kid1)
 {
     InitializeComponent();
     kid_textbox.Text     = kid1.getName();
     address_textbox.Text = kid1.getAddress();
 }
Example #3
0
 public location(kid kid_info)
 {
     location_info = new kid(kid_info.getName(), kid_info.getAddress());
     distance      = new Dictionary <location, double>();
 }