blob: 757f6f454f3c2f5fc75a64be46a6018a9831efed (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright (c) 2020 Egor Tensin <Egor.Tensin@gmail.com>
// This file is part of the "winapi-common" project.
// For details, see https://github.com/egor-tensin/winapi-common.
// Distributed under the MIT License.
#include <winapi/sid.hpp>
#include <boost/test/unit_test.hpp>
using namespace winapi;
BOOST_AUTO_TEST_SUITE(sid_tests)
BOOST_AUTO_TEST_CASE(builtin_administrators) {
const auto sid = Sid::builtin_administrators();
BOOST_TEST(sid.to_string() == "S-1-5-32-544");
}
BOOST_AUTO_TEST_SUITE_END()
|