Aurora-Modders / AuroraLoader

A tool for discovering and safely managing Aurora mods
MIT License
10 stars 5 forks source link

Unit test ModConfigurationReader #37

Open thashepherd opened 4 years ago

thashepherd commented 4 years ago

https://github.com/Aurora-Modders/AuroraLoader/blob/master/AuroraLoader/Mods/ModConfigurationReader.cs is a utility class that provides static functions for reading ModConfiguration from a .ini file, validating loaded mod configurations (whether from ini or json), loading lists of Aurora versions and checksums, and parsing dictionaries to and from .ini files.

The majority of AuroraLoader functionality that touches the 'outside world' relies on the functions provided by this class, so ensuring solid unit test coverage here will have huge benefits for the entire application. Fortunately, the nature of these static functions make them easy to test!