forked from onebeyond/monaco
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: File support components testing, cleanup and refactors. (onebey…
…ond#44) ## Description - Refactor FileService to remove remaining dependency on System.Drawing - Fix BlobStorageService GetFileType() to use string.ToLower() - Add unit tests for GetFileType() - Add unit tests to FileServiceTests - Remove duplicate Trait declarations in test classes - General tidy up - Update packages ## Motivation and Context onebeyond#31 replaced System.Drawing implementation, however FileService still had a dependency on System.Drawing for its Size class. As we are not using any specific functionality from the Size class and are just using it to represent data then we can replace it with a tuple. Other changes in this PR are to: - fix a bug with the GetFileType method that was not handling strings with uppercase characters properly. - correct some typos and apply consistent style in some areas - add unit tests ## Types of changes - [x] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Checklist: - [x] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [x] I have read the **CONTRIBUTING** document. - [x] I have added tests to cover my changes. - [x] All new and existing tests passed.
- Loading branch information
1 parent
d963ea5
commit a8fa647
Showing
46 changed files
with
422 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.