Esempio n. 1
0
        public void Change_DifferentTypes()
        {
            ResourceDetail r1 = new ResourceDetail(null, "test", new byte[0]);
            StubDetail s1 = new StubDetail("x1", null, Visibility.Public);

            r1.PerformCompare(s1);
        }
Esempio n. 2
0
        protected override ChangeType CompareInstance(ICanCompare previous, bool suppressBreakingChanges)
        {
            ChangeType change = base.CompareInstance(previous, suppressBreakingChanges);

            ResourceDetail other = (ResourceDetail)previous;

            if (string.Compare(_contentHash, other._contentHash) != 0)
            {
                change |= ChangeType.ContentChanged;
            }

            return(change);
        }