public void Constructor_ValidCall_ShouldNotThrowException()
        {
            // Arrange
            var fixtures = new ExceptionMessageFormatterFactoryTestFixtures();

            // Act
            var factory = fixtures.CreateFactory();

            // Assert
            Assert.Pass("The factory was created successfully");
        }
        public void GetFormatter_ForException_ShouldGetExceptionFormatter(Type exceptionType, Type expectedFormatterType)
        {
            // Arrange
            var fixtures = new ExceptionMessageFormatterFactoryTestFixtures()
                           .WithExceptionFormatter(new HttpRequestExceptionMessageFormatter())
                           .WithExceptionFormatter(new AggregateExceptionMessageFormatter());

            var factory   = fixtures.CreateFactory();
            var exception = Activator.CreateInstance(exceptionType) as Exception;

            // Actual
            var actualFormatterType = factory.GetFormatter(exception);

            // Assert
            Assert.AreEqual(expectedFormatterType, actualFormatterType.GetType());
        }