public void ItShouldThrowACompositionException()
        {
            // Arrange
            string expectedMessage =
                $"Failed to get the compositions for the parameter '{typeof(DependencyClass2)} dependency2' to the " +
                $"constructor of '{typeof(DependantClass)}'. Is there a missing registration mapping?";

            // Act
            Action action = () => _composition.GenerateCode();

            // Assert
            action
            .ShouldThrow <CompositionException>()
            .WithMessage(expectedMessage);
        }
        public void ItShouldThrowACompositionException()
        {
            // Arrange
            string expectedMessage =
                "Failed to get the compositions for the parameter " +
                $"'{typeof(IUnsupportedGenericInterface<SingleDependency>)} dependency' to the constructor of " +
                $"'{typeof(ClassWithUnsupportedGenericDependency)}'. Is there a missing registration mapping?";

            // Act
            Action action = () => _composition.GenerateCode();

            // Assert
            action
            .Should().Throw <CompositionException>()
            .WithMessage(expectedMessage);
        }