mirror of
https://github.com/ModOrganizer2/modorganizer-bsapacker.git
synced 2026-07-27 14:06:14 -07:00
37 lines
834 B
C++
37 lines
834 B
C++
#include "gtest/gtest.h"
|
|
#include "gmock/gmock.h"
|
|
|
|
#include <bsapacker/ArchiveBuilderHelper.h>
|
|
#include "MockSettingsService.h"
|
|
|
|
using namespace BsaPacker;
|
|
using std::filesystem::path;
|
|
using ::testing::NaggyMock;
|
|
using ::testing::Return;
|
|
|
|
namespace BsaPackerTests
|
|
{
|
|
class ArchiveBuilderHelperFacts : public ::testing::Test
|
|
{
|
|
protected:
|
|
void SetUp() override {
|
|
naggyMockSettingsService = new NaggyMock<MockSettingsService>();
|
|
naggyPath = new NaggyMock<path>();
|
|
}
|
|
|
|
void TearDown() override {
|
|
delete naggyMockSettingsService;
|
|
delete naggyPath;
|
|
}
|
|
|
|
NaggyMock<MockSettingsService>* naggyMockSettingsService;
|
|
NaggyMock<std::filesystem::path>* naggyPath;
|
|
};
|
|
|
|
TEST_F(ArchiveBuilderHelperFacts, Ctor_Always_Constructs)
|
|
{
|
|
EXPECT_NO_THROW(
|
|
auto result = ArchiveBuilderHelper(naggyMockSettingsService);
|
|
);
|
|
}
|
|
} |