Beispiel #1
0
        public void ensureDifferentRestrictionsHaveDifferentHashCode()
        {
            Restriction instance = new Restriction("restriction", new SameMaterialAndFinishAlgorithm());
            Restriction other    = new Restriction("bananas", new SameMaterialAndFinishAlgorithm());

            Assert.False(instance.GetHashCode().Equals(other.GetHashCode()));
        }
Beispiel #2
0
        public void ensureEqualRestrictionsHaveSameHashCode()
        {
            Restriction instance = new Restriction("restriction", new SameMaterialAndFinishAlgorithm());
            Restriction other    = new Restriction("restriction", new SameMaterialAndFinishAlgorithm());

            Assert.True(instance.GetHashCode().Equals(other.GetHashCode()));
        }