Ejemplo n.º 1
0
        public void IsExpectedException_ShouldBe_Origin_IsExpectedException(bool expected)
        {
            // Arrange
            var exception = new Exception();

            ((IThrowsExpectedExceptions)_origin).IsExpectedException(exception).Returns(expected);

            var storage = new LoggingStorage <string>(_logger, _origin);

            // Act
            var result = storage.IsExpectedException(exception);

            // Assert
            result.Should().Be(expected);
        }