-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[StyleCop] Fix all the warnings on ApplicationInsights.Tests #1507
Conversation
ceciliaavila
commented
Mar 18, 2019
- Rename variable to avoid Hungarian notation
- Fix spacing
- Fix parameters
c85f7be
to
8ddc5b6
Compare
Pull Request Test Coverage Report for Build 52003
💛 - Coveralls |
tests/Microsoft.Bot.Builder.ApplicationInsights.Tests/TelemetryWaterfallTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an empty string added. Was this intended?
It didn't exist before.
Thank you
8ddc5b6
to
ef0d4e2
Compare
tests/Microsoft.Bot.Builder.ApplicationInsights.Tests/TelemetryWaterfallTests.cs
Show resolved
Hide resolved
tests/Microsoft.Bot.Builder.ApplicationInsights.Tests/TelemetryWaterfallTests.cs
Show resolved
Hide resolved
tests/Microsoft.Bot.Builder.ApplicationInsights.Tests/TelemetryWaterfallTests.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a second look I noticed there is a new method introduced that can reduce code duplication.
I provided a few comments.
Thanks!
Hi @munozemilio! I think that's a great idea. If you think it's fine we will be creating a new PR with just |
Hello @ParadoxARG, absolutely agree with you. Those refactors should go in a different PR. I will then request a change on the first waterfall dialog to keep it consistent and remove the NewWaterFallSteps method, and just introduce the StyleCop fixes. Thanks! |
async (step, cancellationToken) => { await step.Context.SendActivityAsync("step3"); return Dialog.EndOfTurn; }, | ||
})); | ||
dialogs.Add(new WaterfallDialog( | ||
"test", NewWaterfall())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we keep it consistent with the StyleCop changes and not introduce any refactors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed! Moving it to a new PR
// Event contains "StepName" | ||
// Event naming on lambda's is "StepXofY" | ||
Assert.IsTrue(saved_properties["WaterfallCancel_4"]["StepName"] == "Step3of3"); | ||
Assert.IsTrue(waterfallDialog.CancelDialogCalled); | ||
Assert.IsFalse(waterfallDialog.EndDialogCalled); | ||
} | ||
|
||
private static WaterfallStep[] NewWaterfall() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the intention of the PR is only to fix StyleCop issues, can we push this in a different PR to keep it consistent?
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed! Moving it to a new PR
ef0d4e2
to
bf17465
Compare
bf17465
to
fbafcda
Compare
Rebased to master and applied feedback |