public void TestClientConnected(bool connected) { inner.ClientConnected().Returns(connected); Assert.That(middleware.ClientConnected(), Is.EqualTo(connected)); inner.Received(1).ClientConnected(); }