public void IsServiceNotRunning_ShouldBeFalse_WhenNativeErrorCode_IsDifferent() { // Arrange var exception = new InvalidOperationException("", new Win32Exception(1063)); // Act var result = exception.IsServiceNotRunning(); // Assert result.Should().BeFalse(); }
public void IsServiceNotRunning_ShouldBeFalse_WhenInnerException_IsNull() { // Arrange var exception = new InvalidOperationException(); // Act var result = exception.IsServiceNotRunning(); // Assert result.Should().BeFalse(); }
public void IsServiceNotRunning_ShouldBeTrue() { // Arrange var exception = new InvalidOperationException("", new Win32Exception(ServiceNotRunning)); // Act var result = exception.IsServiceNotRunning(); // Assert result.Should().BeTrue(); }