public void ShouldNotCallLogger(string ipAddressString) { var ipAddress = ipAddressString.MakeIpAddress(); context.HttpContext.Connection.RemoteIpAddress.Returns(ipAddress); Action act = () => filter.OnActionExecuting(context); act.Should().NotThrow <Exception>(); logger.DidNotReceiveWithAnyArgs().Log(default);