Пример #1
0
        public void GetHashCode_WhenSameParamName_ReturnsSameHashCode()
        {
            var otherException = new ConstructorCheckMissingException(paramName);

            sut.GetHashCode().Should().Be(otherException.GetHashCode());
        }
Пример #2
0
        public void GetHashCode_WhenParamNameDiffers_ReturnsDifferentHashCode()
        {
            var otherException = new ConstructorCheckMissingException(otherParamName);

            sut.GetHashCode().Should().NotBe(otherException.GetHashCode());
        }