Пример #1
0
        public void RowVersionMissingException_Base_Constructor()
        {
            // Arrange
            // Act
            var exception = new RowVersionMissingException();

            // Assert
            exception.Message.Should().Be("Exception of type 'Pims.Dal.Exceptions.RowVersionMissingException' was thrown.");
        }
Пример #2
0
        public void RowVersionMissingException_Constructor_01()
        {
            // Arrange
            var msg = "test";

            // Act
            var exception = new RowVersionMissingException(msg);

            // Assert
            exception.Message.Should().Be(msg);
        }
Пример #3
0
        public void RowVersionMissingException_Constructor_02()
        {
            // Arrange
            var msg   = "test";
            var error = new Exception("inner");

            // Act
            var exception = new RowVersionMissingException(msg, error);

            // Assert
            exception.Message.Should().Be(msg);
            exception.InnerException.Should().Be(error);
        }