Beispiel #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.");
        }
Beispiel #2
0
        public void RowVersionMissingException_Constructor_01()
        {
            // Arrange
            var msg = "test";

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

            // Assert
            exception.Message.Should().Be(msg);
        }
Beispiel #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);
        }