public void ensureDifferentRestrictionsHaveDifferentHashCode() { Restriction instance = new Restriction("restriction", new SameMaterialAndFinishAlgorithm()); Restriction other = new Restriction("bananas", new SameMaterialAndFinishAlgorithm()); Assert.False(instance.GetHashCode().Equals(other.GetHashCode())); }
public void ensureEqualRestrictionsHaveSameHashCode() { Restriction instance = new Restriction("restriction", new SameMaterialAndFinishAlgorithm()); Restriction other = new Restriction("restriction", new SameMaterialAndFinishAlgorithm()); Assert.True(instance.GetHashCode().Equals(other.GetHashCode())); }