Exemple #1
0
        public void Equals(EntryCriteria criteria, object other, bool expected)
        {
            // act
            var result = criteria.Equals(other);

            // assert
            Assert.That(result, Is.EqualTo(expected));
        }
        public override bool Equals(object obj)
        {
            if (obj is EntrySearchCacheKey)
            {
                var other = obj as EntrySearchCacheKey;

                return
                    (EntryCriteria.Equals(other.EntryCriteria) &&
                     ResultOrder.Equals(other.ResultOrder));
            }

            return(false);
        }