I'm writing Unit Tests (C#) for Dialogs created with version 4 of the MS Bot Framework. I'm wondering how to unit test a ComponentDialog containing a WaterfallDialog and a OAuthPrompt where one step of the WaterfallDialog requires the user to login using the OAuthprompt?
When I write a Unit Test for such a Dialog using the TestAdapter and TestFlow I get to following exception:
OAuthPrompt.GetUserToken(): not supported by the current adapter
This makes sense because the TestAdapter doesn't have a GetUserTokenAsync method like the BotFrameworkAdapter has (this method it called from OAuthPrompt.GetUserToken).
How can we work around this?