Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 75aae97

Browse files
authored
reverting change made in other merge (#940)
1 parent 3a7ef2c commit 75aae97

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

solutions/Virtual-Assistant/src/csharp/tests/virtualassistant.tests/SkillInvocationTests.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,19 @@ public async Task PointOfInterestSkillInvocation()
9898

9999
await this.GetTestFlow()
100100
.Send(PointOfInterestUtterances.FindCoffeeShop)
101-
.AssertReply(POISharedResponses.PointOfInterestWelcomeMessage)
101+
.AssertReply(this.ValidateAzureMapsKeyPrompt())
102102
.StartTestAsync();
103-
}
103+
}
104+
105+
private Action<IActivity> ValidateAzureMapsKeyPrompt()
106+
{
107+
return activity =>
108+
{
109+
var traceActivity = activity as Activity;
110+
Assert.IsNotNull(traceActivity);
111+
112+
Assert.IsTrue(traceActivity.Text.Contains("DialogException: Could not get the required Azure Maps key. Please make sure your settings are correctly configured."));
113+
};
114+
}
104115
}
105116
}

0 commit comments

Comments
 (0)