Exemplo n.º 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");
        }
Exemplo n.º 2
0
        public void ToscaRelationshipTypeNotFound_Should_Be_Serializable()
        {
            // Act
            var toscaRelationshipTypeNotFound = new ToscaRelationshipTypeNotFoundException();

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