Exemple #1
0
        public void IsCommunicationException_ShouldBeTrue_WhenSpecific_ObjectDisposedException()
        {
            // Arrange
            var exception = new ObjectDisposedException("System.ServiceModel.Channels.ServiceChannel");

            // Act
            var result = exception.IsServiceCommunicationException();

            // Assert
            result.Should().BeTrue();
        }
Exemple #2
0
        public void IsCommunicationException_ShouldBeFalse_When_ObjectDisposedException()
        {
            // Arrange
            var exception = new ObjectDisposedException("System.String");

            // Act
            var result = exception.IsServiceCommunicationException();

            // Assert
            result.Should().BeFalse();
        }