Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Configuration tests #29896

Merged
merged 6 commits into from
Jun 2, 2018
Merged

Configuration tests #29896

merged 6 commits into from
Jun 2, 2018

Conversation

Jlalond
Copy link
Contributor

@Jlalond Jlalond commented May 24, 2018

#15554 Finished a few tests, stuck on App Setting Reader which will be my next target. But figured I'd merge up what I've been working on in the meantime @JeremyKuhne

@Jlalond
Copy link
Contributor Author

Jlalond commented May 24, 2018

Can I get some feedback on if the exception tests are overly specific/pedantic. It felt weird to create a test class for each, but I wanted to try to keep it organized. Not sure if it was the correct move

Copy link
Member

@JeremyKuhne JeremyKuhne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor change, otherwise looks good.

var collection = new SettingElementCollection();
collection.Add(settingElement);
var retrievedElement = collection.Get("TestElementName");
Assert.Equal(settingElement, retrievedElement);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assert.Same to see that we get the same object instance back.

@Jlalond
Copy link
Contributor Author

Jlalond commented Jun 1, 2018

@JeremyKuhne just looked at the debug build, can't figure out why it's failing. Is there anything I need to do?

@JeremyKuhne
Copy link
Member

@dotnet-bot test Windows x64 Debug Build

@JeremyKuhne
Copy link
Member

just looked at the debug build, can't figure out why it's failing. Is there anything I need to do?

@Jlalond probably nothing- I kicked the debug one again to be sure (history is gone). I'll merge this in once we get results.

@JeremyKuhne JeremyKuhne merged commit e623478 into dotnet:master Jun 2, 2018
@karelz karelz added this to the 3.0 milestone Jun 2, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Added some configuration unit tests

* Initial Unit Test Changes

* Got ConfigurationValidatorBase to 100% coverage

* Stuck on AppSettingsReaderTests, pushing what I have

* Changed my exception tests, they looked ugly

* Changes from equal to same for setting element collection tests


Commit migrated from dotnet/corefx@e623478
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants