Add new BMP tests

This commit is contained in:
Luis Diaz
2022-01-10 13:06:37 +01:00
committed by Luis Díaz Más
parent 8505f4d935
commit edf39e00dd
5 changed files with 38 additions and 17 deletions
+21
View File
@@ -0,0 +1,21 @@
#include <exiv2/bmpimage.hpp>
#include <gtest/gtest.h>
#include <array>
using namespace Exiv2;
TEST(BmpImage, canBeOpenedWithEmptyMemIo)
{
auto memIo = std::make_unique<MemIo>();
ASSERT_NO_THROW(BmpImage bmp(std::move(memIo)));
}
TEST(BmpImage, mimeTypeIsBmp)
{
auto memIo = std::make_unique<MemIo>();
BmpImage bmp(std::move(memIo));
ASSERT_EQ("image/x-ms-bmp", bmp.mimeType());
}