Ejemplo n.º 1
0
        public void CallsHashCodeEquals()
        {
            var firstCall = new PhoneCall()
            {
                From = "AAAA", To = "BBBB", Caller = null, Direction = CallDirection.Incoming, Duration = 120, StartTime = new DateTime(2000, 10, 5, 10, 20, 20)
            };
            var lastCall = new PhoneCall()
            {
                From = "AAAA", To = "BBBB", Caller = null, Direction = CallDirection.Incoming, Duration = 100, StartTime = new DateTime(2000, 10, 5, 10, 20, 0)
            };


            Assert.AreEqual(firstCall.GetHashCode(), lastCall.GetHashCode());
        }