Skip to content

BMP File Loader - #7

Open
SzymonSliwinski wants to merge 3 commits into
developfrom
bmp
Open

SzymonSliwinski wants to merge 3 commits into
developfrom
bmp

Conversation

@SzymonSliwinski

Copy link
Copy Markdown
Member

Getting few BMP properties from it's bytes

@SzymonSliwinski SzymonSliwinski changed the title Bmp BMP File Loader Jul 13, 2021

@h4570 h4570 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please fix following issues, and and create some tests! :)
You can create first test in FileLoaderTests/ImageLoaders/BMPLoaderTests.cs which will be using dummy and small! bmp file from FileLoaderTests/Resources/dummy.bmp. After it you can create two tests on var res = Load(...) that will check res.Width and res.Height of this file :)

Comment thread src/FileLoader/ImageLoaders/BMPLoader.cs
Comment thread src/FileLoader/ImageLoaders/BMPLoader.cs
Comment thread src/FileLoader/ImageLoaders/BMPLoader.cs Outdated
}
catch
{
throw new NotImplementedException();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please create your own Exception, place it in FileLoader/Exceptions and throw it there instead of NotImplementedException. For example BMPFileLoadingException.

Dont forget to comment it https://docs.microsoft.com/pl-pl/dotnet/csharp/programming-guide/xmldoc/exception

Comment thread src/FileLoader/ImageLoaders/BMPLoader.cs Outdated
Comment thread src/FileLoader/ImageLoaders/BMPLoader.cs Outdated
Comment thread src/FileLoader/ImageLoaders/BMPLoader.cs Outdated
Comment thread src/FileLoader/structs/BMPFile.cs Outdated
Comment thread src/FileLoader/structs/BMPFile.cs Outdated
Comment thread src/FileLoader/ImageLoaders/BMPLoader.cs Outdated
Comment thread src/FileLoader/ImageLoaders/BMPLoader.cs Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants