public void IsCommunicationException_ShouldBeTrue_WhenSpecific_ObjectDisposedException() { // Arrange var exception = new ObjectDisposedException("System.ServiceModel.Channels.ServiceChannel"); // Act var result = exception.IsServiceCommunicationException(); // Assert result.Should().BeTrue(); }
public void IsCommunicationException_ShouldBeFalse_When_ObjectDisposedException() { // Arrange var exception = new ObjectDisposedException("System.String"); // Act var result = exception.IsServiceCommunicationException(); // Assert result.Should().BeFalse(); }