Example #1
0
        public void ToscaRelationshipTypeNotFound_With_Inner_Exception_Initialized_Properly()
        {
            var innerException = new Exception("inner");
            var toscaRelationshipTypeNotFound = new ToscaRelationshipTypeNotFoundException("message", innerException);

            toscaRelationshipTypeNotFound.InnerException.Message.Should().Be("inner");
            toscaRelationshipTypeNotFound.Message.Should().Be("message");
        }
Example #2
0
        public void ToscaRelationshipTypeNotFound_Should_Be_Serializable()
        {
            // Act
            var toscaRelationshipTypeNotFound = new ToscaRelationshipTypeNotFoundException();

            // Assert
            toscaRelationshipTypeNotFound.Should().BeBinarySerializable();
        }