public async Task TelemetryAddWaterfallTest() { var testComponentDialog = new TestComponentDialog(); Assert.IsTrue(testComponentDialog.TelemetryClient is NullBotTelemetryClient); Assert.IsTrue(testComponentDialog.FindDialog("test-waterfall").TelemetryClient is NullBotTelemetryClient); Assert.IsTrue(testComponentDialog.FindDialog("number").TelemetryClient is NullBotTelemetryClient); testComponentDialog.TelemetryClient = new MyBotTelemetryClient(); testComponentDialog.AddDialog(new WaterfallDialog("C")); Assert.IsTrue(testComponentDialog.FindDialog("C").TelemetryClient is MyBotTelemetryClient); await Task.CompletedTask; }
public async Task TelemetryAddWaterfallTest() { var testComponentDialog = new TestComponentDialog(); Assert.Equal(typeof(NullBotTelemetryClient), testComponentDialog.TelemetryClient.GetType()); Assert.Equal(typeof(NullBotTelemetryClient), testComponentDialog.FindDialog("test-waterfall").TelemetryClient.GetType()); Assert.Equal(typeof(NullBotTelemetryClient), testComponentDialog.FindDialog("number").TelemetryClient.GetType()); testComponentDialog.TelemetryClient = new MyBotTelemetryClient(); testComponentDialog.AddDialog(new WaterfallDialog("C")); Assert.Equal(typeof(MyBotTelemetryClient), testComponentDialog.FindDialog("C").TelemetryClient.GetType()); await Task.CompletedTask; }