AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter07.Tests/Listing07.09.OverridingAProperty.cs
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter07.Listing07_09
{
    [TestClass]
    public class ContactTests
    {
        [TestMethod]
        public void NameProperty_Overridden()
        {
            Contact contact = new Contact();

            contact.Name = "Inigo Montoya";
            
            Assert.AreEqual("Inigo", contact.FirstName);
            Assert.AreEqual("Montoya", contact.LastName);
        }
    }
}
