File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -1366,5 +1366,40 @@ public IEnumerator TestDeleteWorkspace()
13661366 while ( deleteWorkspaceResponse == null )
13671367 yield return null ;
13681368 }
1369+
1370+ [ UnityTest , Order ( 100 ) ]
1371+ public IEnumerator TestRuntimeResponseGenericRuntimeResponseTypeChannelTransfer ( )
1372+ {
1373+ workspaceId = Environment . GetEnvironmentVariable ( "ASSISTANT_WORKSPACE_ID" ) ;
1374+ MessageResponse messageResponse = null ;
1375+ string conversationId = null ;
1376+
1377+ service . WithHeader ( "X-Watson-Test" , "1" ) ;
1378+ MessageInput input = new MessageInput ( ) ;
1379+
1380+ input . Add ( "text" , "test sdk" ) ;
1381+
1382+ Log . Debug ( "AssistantV1IntegrationTests" , "Attempting to Message...test sdk" ) ;
1383+ service . Message (
1384+ callback : ( DetailedResponse < MessageResponse > response , IBMError error ) =>
1385+ {
1386+ messageResponse = response . Result ;
1387+ RuntimeResponseGenericRuntimeResponseTypeChannelTransfer
1388+ runtimeResponseGenericRuntimeResponseTypeChannelTransfer =
1389+ ( RuntimeResponseGenericRuntimeResponseTypeChannelTransfer ) messageResponse . Output . Generic [ 0 ] ;
1390+
1391+ ChannelTransferInfo channelTransferInfo =
1392+ runtimeResponseGenericRuntimeResponseTypeChannelTransfer . TransferInfo ;
1393+
1394+ Assert . IsNotNull ( channelTransferInfo ) ;
1395+ Assert . IsNull ( error ) ;
1396+ } ,
1397+ workspaceId : workspaceId ,
1398+ input : input
1399+ ) ;
1400+
1401+ while ( messageResponse == null )
1402+ yield return null ;
1403+ }
13691404 }
13701405}
You can’t perform that action at this time.
0 commit comments