Пример #1
0
        public ConstructorCheckMissingExceptionTests()
        {
            var fixture = new Fixture();

            paramName      = fixture.Create <string>();
            otherParamName = fixture.Create <string>();
            sut            = new ConstructorCheckMissingException(paramName);
        }
Пример #2
0
        public void GetHashCode_WhenSameParamName_ReturnsSameHashCode()
        {
            var otherException = new ConstructorCheckMissingException(paramName);

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

            sut.GetHashCode().Should().NotBe(otherException.GetHashCode());
        }
Пример #4
0
        public void Equals_GivenSameParamName_ReturnsTrue()
        {
            var otherException = new ConstructorCheckMissingException(paramName);

            sut.Equals(otherException).Should().BeTrue();
        }
Пример #5
0
        public void Equals_GivenOtherParamName_ReturnsFalse()
        {
            var otherException = new ConstructorCheckMissingException(otherParamName);

            sut.Equals(otherException).Should().BeFalse();
        }