-
Notifications
You must be signed in to change notification settings - Fork 634
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
Increase coverage of the Updates folder #10648
Conversation
|
||
[Test] | ||
[Category("UnitTests")] | ||
public void CheckNewerDailyBuildTest() |
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 rename this test? This name is misleading as it seems it actually check newer daily builds
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.
Done, I consolidated the tests for the properties and it's now called UpdateManagerConfigurationPropertiesTest
#region UpdateRequest | ||
[Test] | ||
[Category("UnitTests")] | ||
public void UpdateRequest_ConstructorTest() |
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.
Let's not use underscore in test name
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.
Removed the underscore
{ | ||
var lookup = new DynamoLookupChildTest(); | ||
|
||
Assert.IsNull(lookup.LatestProduct); |
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 you explain or comment here why it would be null?
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.
Added a comment regarding this. It is related to the implementation of GetDynamoInstallLocations in my test class.
|
||
[Test] | ||
[Category("UnitTests")] | ||
public void UpdateManagerConfiguration_SaveTest() |
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.
Please dont use underscore, I think out team are trying to get rid of this coding style recently
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.
Removed the underscore
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.
Looks good but the test names need to reconsidered. If they are property test or function test, I recommend imply that in function name of at least add comments to the test function.
Corrections from the PR review
@byorda-glb Thanks, looks good to me! |
Purpose
Increase the tests coverage of the Updates folder
Declarations
Check these if you believe they are true
*.resx
filesReviewers
Aaron Tang
Michael Kisrchner
FYIs
Alfredo Pozo