Пример #1
0
        public void location_Equals_test()
        {
            location a = new location(new kid("This is a test kid name", "This is test address"));

            Assert.AreEqual(a.Equals(new location(new kid("This is a test kid name", "This is test address"))), true);
            Assert.AreEqual(a.Equals(new location(new kid("This is a different test kid name", "This is different test address"))), false);
            location b = new location(new kid("This is a test kid name", "This is test address"));

            Assert.AreEqual(a.GetHashCode(), b.GetHashCode());
        }