public async Task TestTeamsSendToChannelAsync() { // Arrange var destinationConversationAccountId = string.Empty; void CaptureSend(Activity[] arg) { destinationConversationAccountId = arg[0].Conversation.Id; } var inboundActivity = new Activity { Type = ActivityTypes.Message, Conversation = new ConversationAccount { Id = "originalId" }, }; var turnContext = new TurnContext(new SimpleAdapter(CaptureSend), inboundActivity); // Act await turnContext.TeamsSendToChannelAsync("teamsChannel123", MessageFactory.Text("hi")); // Assert Assert.AreEqual("originalId", inboundActivity.Conversation.Id); Assert.AreEqual("teamsChannel123", destinationConversationAccountId); }