Esempio n. 1
0
        public void ShouldBeAssignableToGuardExceptionType()
        {
            // Arrange
            var guardExceptionType = typeof(GuardException);

            // Act
            var exception = new EnumerationKeyMustNotContainTrailingSpaceException();

            // Assert
            exception.Should().BeAssignableTo(guardExceptionType);
        }
Esempio n. 2
0
        public void ShouldHaveEnumerationKeyMustNotContainTrailingSpaceMessage()
        {
            // Arrange
            var expectedExceptionMessage = ExceptionMessage.EnumerationKeyMustNotContainTrailingSpace;

            // Act
            var exception = new EnumerationKeyMustNotContainTrailingSpaceException();

            // Assert
            exception.Message.Should().Be(expectedExceptionMessage);
        }