20 lines
503 B
C++
20 lines
503 B
C++
#include "stdafx.h"
|
|
#include "CppUnitTest.h"
|
|
#include "SiaDriveConfig.h"
|
|
|
|
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
|
|
|
namespace UnitTests
|
|
{
|
|
TEST_CLASS(SiaDriveConfig)
|
|
{
|
|
public:
|
|
TEST_METHOD(DefaultFileCreation)
|
|
{
|
|
Sia::Api::CSiaDriveConfig cfg(L".\\test_cfg.json");
|
|
Assert::AreEqual(static_cast<uint8_t>(0), cfg.GetUI_Main_TabIndex());
|
|
Assert::IsTrue(PathFileExists(L".\\test_cfg.json"));
|
|
Assert::AreEqual(L".\\test_cfg.json", cfg.GetFilePath().c_str());
|
|
}
|
|
};
|
|
} |