示例#1
0
        public void Exteriors_WhenNotEqual_HashCodesNotEqual()
        {
            // Arrange
            var exterior1 = new Exterior();
            var exterior2 = new Exterior(Colors.Black);

            // Act
            var hashCodesEqual = exterior1.GetHashCode() == exterior2.GetHashCode();

            // Assert
            hashCodesEqual.Should().BeFalse();
        }
示例#2
0
        public void Exteriors_WhenEqual_HashCodesEqual()
        {
            // Arrange
            var exterior1 = new Exterior();
            var exterior2 = new Exterior();

            // Act
            var hashCodesEqual = exterior1.GetHashCode() == exterior2.GetHashCode();

            // Assert
            hashCodesEqual.Should().BeTrue();
        }