public async Task InvokeGroupAsync_WritesTo_AllConnections_InGroup_Except_Output() { using (var client1 = new TestClient()) using (var client2 = new TestClient()) { var manager = new OrleansHubLifetimeManager <MyHub>(new LoggerFactory().CreateLogger <OrleansHubLifetimeManager <MyHub> >(), this._fixture.ClientProvider); var connection1 = HubConnectionContextUtils.Create(client1.Connection); var connection2 = HubConnectionContextUtils.Create(client2.Connection); await manager.OnConnectedAsync(connection1); await manager.OnConnectedAsync(connection2); await manager.AddToGroupAsync(connection1.ConnectionId, "gunit"); await manager.AddToGroupAsync(connection2.ConnectionId, "gunit"); await manager.SendGroupExceptAsync("gunit", "Hello", new object[] { "World" }, new string[] { connection2.ConnectionId }); await AssertMessageAsync(client1); Assert.Null(client2.TryRead()); } }