using System; using System.Collections.Generic; namespace Centron.Tests.EndToEnd.Infrastructure.Verifier { internal class DateTimeEqualityComparer : EqualityComparer { public override bool Equals(DateTime x, DateTime y) { return x.Year == y.Year && x.Month == y.Month && x.Day == y.Day && x.Hour == y.Hour && x.Minute == y.Minute && x.Second == y.Second; } public override int GetHashCode(DateTime obj) { return Tuple.Create(obj.Year, obj.Month, obj.Day, obj.Hour, obj.Minute, obj.Second).GetHashCode(); } } }