You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Tests/Microsoft.Agents.A365.Tooling.Extensions.AgentFramework.Tests/Services/McpToolRegistrationServiceTests/SendChatHistoryAsync_ChatMessageStore_Tests.cs
+73-7Lines changed: 73 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,8 @@ public async Task WithEmptyStore_ReturnsSuccessWithoutCallingService()
99
99
s =>s.SendChatHistoryAsync(
100
100
It.IsAny<ITurnContext>(),
101
101
It.IsAny<ChatHistoryMessage[]>(),
102
-
It.IsAny<ToolOptions>()),
102
+
It.IsAny<ToolOptions>(),
103
+
It.IsAny<CancellationToken>()),
103
104
Times.Never);
104
105
}
105
106
@@ -124,7 +125,8 @@ public async Task WithEmptyStoreAndToolOptions_ReturnsSuccessWithoutCallingServi
124
125
s =>s.SendChatHistoryAsync(
125
126
It.IsAny<ITurnContext>(),
126
127
It.IsAny<ChatHistoryMessage[]>(),
127
-
It.IsAny<ToolOptions>()),
128
+
It.IsAny<ToolOptions>(),
129
+
It.IsAny<CancellationToken>()),
128
130
Times.Never);
129
131
}
130
132
@@ -137,7 +139,8 @@ public async Task WithValidStore_RetrievesAndSendsMessages()
137
139
.Setup(s =>s.SendChatHistoryAsync(
138
140
It.IsAny<ITurnContext>(),
139
141
It.IsAny<ChatHistoryMessage[]>(),
140
-
It.IsAny<ToolOptions>()))
142
+
It.IsAny<ToolOptions>(),
143
+
It.IsAny<CancellationToken>()))
141
144
.ReturnsAsync(expectedResult);
142
145
143
146
varservice=CreateService();
@@ -167,7 +170,8 @@ public async Task WithValidStore_RetrievesAndSendsMessages()
Copy file name to clipboardExpand all lines: src/Tests/Microsoft.Agents.A365.Tooling.Extensions.AgentFramework.Tests/Services/McpToolRegistrationServiceTests/SendChatHistoryAsync_IEnumerable_Tests.cs
+53-10Lines changed: 53 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,8 @@ public async Task WithEmptyChatMessages_ReturnsSuccessWithoutCallingService()
78
78
s =>s.SendChatHistoryAsync(
79
79
It.IsAny<ITurnContext>(),
80
80
It.IsAny<ChatHistoryMessage[]>(),
81
-
It.IsAny<ToolOptions>()),
81
+
It.IsAny<ToolOptions>(),
82
+
It.IsAny<CancellationToken>()),
82
83
Times.Never);
83
84
}
84
85
@@ -91,7 +92,8 @@ public async Task WithValidChatMessages_CallsServiceWithConvertedMessages()
91
92
.Setup(s =>s.SendChatHistoryAsync(
92
93
It.IsAny<ITurnContext>(),
93
94
It.IsAny<ChatHistoryMessage[]>(),
94
-
It.IsAny<ToolOptions>()))
95
+
It.IsAny<ToolOptions>(),
96
+
It.IsAny<CancellationToken>()))
95
97
.ReturnsAsync(expectedResult);
96
98
97
99
varservice=CreateService();
@@ -137,7 +139,8 @@ public async Task WithValidChatMessages_CallsServiceWithConvertedMessages()
0 commit comments