aboutsummaryrefslogtreecommitdiff
path: root/libs/bsapacker/tests/ArchiveBuilderHelperFacts.cpp
blob: a970c24d60daa2854130b070d768baca4d33b02b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#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);
		);
	}
}